home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 5c 26 7d 0a 0a 20 54 |\section|{\&}.. T|
|00000010| 68 65 20 60 5c 26 27 20 | 6f 70 65 72 61 74 6f 72 |he `\&' |operator|
|00000020| 20 66 6f 72 63 65 73 20 | 5c 66 75 64 67 69 74 5c | forces |\fudgit\|
|00000030| 20 74 6f 20 75 73 65 20 | 74 68 65 20 62 75 69 6c | to use |the buil|
|00000040| 74 2d 69 6e 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 |t-in fol|lowing f|
|00000050| 69 74 74 69 6e 67 0a 20 | 6d 6f 64 65 20 63 6f 6d |itting. |mode com|
|00000060| 6d 61 6e 64 20 61 6e 64 | 20 74 6f 20 69 67 6e 6f |mand and| to igno|
|00000070| 72 65 20 61 6e 79 20 65 | 78 69 73 74 69 6e 67 20 |re any e|xisting |
|00000080| 6d 61 63 72 6f 20 6f 72 | 20 61 6c 69 61 73 20 77 |macro or| alias w|
|00000090| 69 74 68 20 74 68 65 20 | 73 61 6d 65 0a 20 6e 61 |ith the |same. na|
|000000a0| 6d 65 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 20 |me. This| can be |
|000000b0| 75 73 65 66 75 6c 20 69 | 6e 20 63 6f 6e 73 74 72 |useful i|n constr|
|000000c0| 75 63 74 69 6f 6e 73 20 | 6c 69 6b 65 3a 0a 5c 6e |uctions |like:.\n|
|000000d0| 6f 70 61 67 65 62 72 65 | 61 6b 5c 62 65 67 69 6e |opagebre|ak\begin|
|000000e0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 20 6d |{verbati|m}. m|
|000000f0| 61 63 72 6f 20 63 64 20 | 31 0a 20 20 20 20 20 20 |acro cd |1. |
|00000100| 20 20 70 6d 6f 64 65 20 | 63 64 20 22 24 31 22 0a | pmode |cd "$1".|
|00000110| 20 20 20 20 20 20 20 20 | 26 63 64 20 24 31 20 20 | |&cd $1 |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 23 20 54 68 65 20 62 75 | 69 6c 74 2d 69 6e 20 63 |# The bu|ilt-in c|
|00000140| 64 0a 20 20 20 20 73 74 | 6f 70 0a 5c 65 6e 64 7b |d. st|op.\end{|
|00000150| 76 65 72 62 61 74 69 6d | 7d 0a 0a 5c 53 65 65 61 |verbatim|}..\Seea|
|00000160| 6c 73 6f 0a 5c 62 71 20 | 6d 61 63 72 6f 2c 20 63 |lso.\bq |macro, c|
|00000170| 64 20 5c 65 71 0a 0a 5c | 73 65 63 74 69 6f 6e 7b |d \eq..\|section{|
|00000180| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 7d 0a 0a 20 |$\backsl|ash$}.. |
|00000190| 49 66 20 61 6e 79 77 68 | 65 72 65 20 69 6e 20 74 |If anywh|ere in t|
|000001a0| 68 65 20 6d 69 64 64 6c | 65 20 6f 66 20 61 20 6c |he middl|e of a l|
|000001b0| 69 6e 65 2c 20 61 20 60 | 5c 76 65 72 62 2b 5c 2b |ine, a `|\verb+\+|
|000001c0| 27 20 77 69 6c 6c 20 69 | 6e 64 69 63 61 74 65 0a |' will i|ndicate.|
|000001d0| 20 5c 66 75 64 67 69 74 | 5c 20 74 6f 20 74 61 6b | \fudgit|\ to tak|
|000001e0| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|000001f0| 63 68 61 72 61 63 74 65 | 72 20 61 73 20 69 73 2e |characte|r as is.|
|00000200| 20 49 66 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f | If at t|he end o|
|00000210| 66 20 61 0a 20 6c 69 6e | 65 2c 20 61 20 60 5c 76 |f a. lin|e, a `\v|
|00000220| 65 72 62 2b 5c 2b 27 20 | 69 6e 64 69 63 61 74 65 |erb+\+' |indicate|
|00000230| 73 20 74 68 61 74 20 74 | 68 65 20 70 72 65 73 65 |s that t|he prese|
|00000240| 6e 74 20 6c 69 6e 65 20 | 63 6f 6e 74 69 6e 75 65 |nt line |continue|
|00000250| 73 20 6f 6e 20 74 68 65 | 0a 20 66 6f 6c 6c 6f 77 |s on the|. follow|
|00000260| 69 6e 67 20 6f 6e 65 2c | 20 61 6e 64 20 74 68 75 |ing one,| and thu|
|00000270| 73 20 74 6f 20 69 67 6e | 6f 72 65 20 74 68 65 20 |s to ign|ore the |
|00000280| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 61 72 72 69 61 |followin|g carria|
|00000290| 67 65 20 72 65 74 75 72 | 6e 2e 0a 0a 5c 53 65 65 |ge retur|n...\See|
|000002a0| 61 6c 73 6f 0a 5c 62 71 | 20 6c 69 6e 65 20 65 64 |also.\bq| line ed|
|000002b0| 69 74 69 6e 67 5c 65 71 | 0a 0a 5c 73 65 63 74 69 |iting\eq|..\secti|
|000002c0| 6f 6e 7b 21 7d 0a 0a 20 | 41 6e 79 20 6c 69 6e 65 |on{!}.. |Any line|
|000002d0| 20 62 65 67 69 6e 6e 69 | 6e 67 20 77 69 74 68 20 | beginni|ng with |
|000002e0| 74 68 65 20 73 6f 2d 63 | 61 6c 6c 65 64 20 62 61 |the so-c|alled ba|
|000002f0| 6e 67 20 6f 70 65 72 61 | 74 6f 72 20 60 21 27 20 |ng opera|tor `!' |
|00000300| 77 69 6c 6c 20 65 78 65 | 63 75 74 65 0a 20 74 68 |will exe|cute. th|
|00000310| 65 20 73 79 73 74 65 6d | 20 63 6f 6d 6d 61 6e 64 |e system| command|
|00000320| 20 6c 69 6e 65 20 77 69 | 74 68 20 61 20 42 6f 75 | line wi|th a Bou|
|00000330| 72 6e 65 20 73 68 65 6c | 6c 2e 20 41 6c 69 61 73 |rne shel|l. Alias|
|00000340| 65 64 20 63 6f 6d 6d 61 | 6e 64 73 20 61 73 20 66 |ed comma|nds as f|
|00000350| 6f 75 6e 64 0a 20 69 6e | 20 79 6f 75 72 20 69 6e |ound. in| your in|
|00000360| 74 65 72 61 63 74 69 76 | 65 20 43 2d 73 68 65 6c |teractiv|e C-shel|
|00000370| 6c 20 64 6f 20 6e 6f 74 | 20 68 6f 6c 64 20 61 6e |l do not| hold an|
|00000380| 79 20 6d 6f 72 65 2e 20 | 46 6f 72 20 65 78 61 6d |y more. |For exam|
|00000390| 70 6c 65 2c 0a 20 63 6f | 6d 6d 61 6e 64 73 20 6c |ple,. co|mmands l|
|000003a0| 69 6b 65 20 7b 5c 74 74 | 20 21 72 6d 7d 20 77 69 |ike {\tt| !rm} wi|
|000003b0| 6c 6c 20 6e 6f 74 20 62 | 65 20 69 6e 74 65 72 61 |ll not b|e intera|
|000003c0| 63 74 69 76 65 20 28 69 | 2e 65 2e 20 2f 62 69 6e |ctive (i|.e. /bin|
|000003d0| 2f 72 6d 20 2d 69 29 20 | 65 76 65 6e 0a 20 69 66 |/rm -i) |even. if|
|000003e0| 20 79 6f 75 20 68 61 76 | 65 20 73 75 63 68 20 61 | you hav|e such a|
|000003f0| 6e 20 61 6c 69 61 73 20 | 69 6e 20 79 6f 75 72 20 |n alias |in your |
|00000400| 7b 5c 69 74 20 2e 63 73 | 68 72 63 7d 20 66 69 6c |{\it .cs|hrc} fil|
|00000410| 65 2e 20 42 65 20 63 61 | 72 65 66 75 6c 21 20 20 |e. Be ca|reful! |
|00000420| 41 0a 20 6e 69 63 65 20 | 74 75 72 6e 61 72 6f 75 |A. nice |turnarou|
|00000430| 6e 64 20 69 73 20 74 6f | 20 61 6c 69 61 73 20 72 |nd is to| alias r|
|00000440| 6d 20 74 6f 20 60 7b 5c | 74 74 20 21 20 72 6d 20 |m to `{\|tt ! rm |
|00000450| 2d 69 7d 27 20 69 6e 20 | 79 6f 75 72 20 7b 5c 69 |-i}' in |your {\i|
|00000460| 74 0a 20 2e 66 75 64 67 | 69 74 72 63 7d 20 66 69 |t. .fudg|itrc} fi|
|00000470| 6c 65 20 61 6e 64 20 74 | 6f 20 75 73 65 20 74 68 |le and t|o use th|
|00000480| 65 20 7b 5c 74 74 20 72 | 6d 7d 20 63 6f 6d 6d 61 |e {\tt r|m} comma|
|00000490| 6e 64 20 64 69 72 65 63 | 74 6c 79 20 66 72 6f 6d |nd direc|tly from|
|000004a0| 0a 20 5c 66 75 64 67 69 | 74 27 73 20 73 68 65 6c |. \fudgi|t's shel|
|000004b0| 6c 2e 0a 0a 20 57 68 65 | 6e 20 75 73 65 64 20 69 |l... Whe|n used i|
|000004c0| 6e 20 61 20 6d 61 63 72 | 6f 20 6e 61 6d 65 20 6f |n a macr|o name o|
|000004d0| 72 20 61 6e 20 61 6c 69 | 61 73 20 6e 61 6d 65 2c |r an ali|as name,|
|000004e0| 20 74 68 65 20 60 21 27 | 20 63 68 61 72 61 63 74 | the `!'| charact|
|000004f0| 65 72 20 68 61 73 0a 20 | 73 74 69 6c 6c 20 61 6e |er has. |still an|
|00000500| 6f 74 68 65 72 20 6d 65 | 61 6e 69 6e 67 2e 20 54 |other me|aning. T|
|00000510| 68 69 73 20 74 65 6c 6c | 73 20 74 68 65 20 70 61 |his tell|s the pa|
|00000520| 72 73 65 72 20 74 68 61 | 74 20 63 68 61 72 61 63 |rser tha|t charac|
|00000530| 74 65 72 73 20 66 6f 6c | 6c 6f 77 69 6e 67 0a 20 |ters fol|lowing. |
|00000540| 74 68 65 20 60 21 27 20 | 61 72 65 20 6f 70 74 69 |the `!' |are opti|
|00000550| 6f 6e 61 6c 2e 20 54 68 | 65 72 65 66 6f 72 65 2c |onal. Th|erefore,|
|00000560| 20 69 66 20 6f 6e 65 20 | 74 79 70 65 73 20 74 68 | if one |types th|
|00000570| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 2c 0a 20 69 6e |e follow|ing,. in|
|00000580| 74 65 72 61 63 74 69 76 | 65 6c 79 2c 20 28 73 65 |teractiv|ely, (se|
|00000590| 65 20 4e 4f 54 45 29 0a | 5c 6e 6f 70 61 67 65 62 |e NOTE).|\nopageb|
|000005a0| 72 65 61 6b 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |reak\beg|in{verba|
|000005b0| 74 69 6d 7d 0a 20 20 20 | 20 20 73 65 74 20 6e 6f |tim}. | set no|
|000005c0| 65 78 70 61 6e 64 0a 20 | 20 20 20 20 61 6c 69 61 |expand. | alia|
|000005d0| 73 20 64 61 21 74 65 20 | 21 64 61 74 65 0a 20 20 |s da!te |!date. |
|000005e0| 20 20 20 73 65 74 20 65 | 78 70 61 6e 64 0a 5c 65 | set e|xpand.\e|
|000005f0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 74 68 |nd{verba|tim}. th|
|00000600| 65 6e 20 74 68 65 20 70 | 61 72 73 65 72 20 77 69 |en the p|arser wi|
|00000610| 6c 6c 20 72 65 63 6f 67 | 6e 69 7a 65 20 7b 5c 74 |ll recog|nize {\t|
|00000620| 74 20 64 61 7d 2c 20 7b | 5c 74 74 20 64 61 74 7d |t da}, {|\tt dat}|
|00000630| 20 61 6e 64 20 7b 5c 74 | 74 20 64 61 74 65 7d 20 | and {\t|t date} |
|00000640| 61 73 0a 20 61 6c 6c 20 | 73 79 6e 6f 6e 79 6d 6f |as. all |synonymo|
|00000650| 75 73 20 74 6f 20 74 68 | 65 20 73 79 73 74 65 6d |us to th|e system|
|00000660| 20 63 6f 6d 6d 61 6e 64 | 20 7b 5c 74 74 20 21 20 | command| {\tt ! |
|00000670| 64 61 74 65 7d 20 72 75 | 6e 20 74 68 72 6f 75 67 |date} ru|n throug|
|00000680| 68 20 61 20 42 6f 75 72 | 6e 65 0a 20 73 68 65 6c |h a Bour|ne. shel|
|00000690| 6c 2e 0a 0a 20 4e 4f 54 | 45 3a 20 49 6e 20 69 6e |l... NOT|E: In in|
|000006a0| 74 65 72 61 63 74 69 76 | 65 20 6d 6f 64 65 2c 20 |teractiv|e mode, |
|000006b0| 74 68 65 20 68 69 73 74 | 6f 72 79 20 66 75 6e 63 |the hist|ory func|
|000006c0| 74 69 6f 6e 73 20 77 69 | 6c 6c 20 74 72 79 20 74 |tions wi|ll try t|
|000006d0| 6f 20 69 6e 74 65 72 70 | 72 65 74 0a 20 61 20 68 |o interp|ret. a h|
|000006e0| 69 73 74 6f 72 79 20 73 | 75 62 73 74 69 74 75 74 |istory s|ubstitut|
|000006f0| 69 6f 6e 20 69 66 20 74 | 68 65 20 60 21 27 20 69 |ion if t|he `!' i|
|00000700| 73 20 6e 6f 74 20 66 6f | 6c 6c 6f 77 65 64 20 62 |s not fo|llowed b|
|00000710| 79 20 61 20 73 70 61 63 | 65 2e 20 53 65 65 20 74 |y a spac|e. See t|
|00000720| 68 65 0a 20 61 70 70 65 | 6e 64 69 63 65 73 2e 20 |he. appe|ndices. |
|00000730| 54 6f 20 61 76 6f 69 64 | 20 74 68 61 74 20 74 68 |To avoid| that th|
|00000740| 65 20 6c 69 6e 65 20 62 | 65 20 73 63 61 6e 6e 65 |e line b|e scanne|
|00000750| 64 20 66 6f 72 20 61 20 | 68 69 73 74 6f 72 79 20 |d for a |history |
|00000760| 65 76 65 6e 74 0a 20 64 | 65 73 69 67 6e 61 74 6f |event. d|esignato|
|00000770| 72 2c 20 75 73 65 20 74 | 68 65 20 7b 5c 74 74 20 |r, use t|he {\tt |
|00000780| 73 65 74 20 6e 6f 65 78 | 70 61 6e 64 7d 20 63 6f |set noex|pand} co|
|00000790| 6d 6d 61 6e 64 2e 20 49 | 6e 20 73 6f 6d 65 20 63 |mmand. I|n some c|
|000007a0| 61 73 65 73 2c 20 69 74 | 0a 20 6d 69 67 68 74 20 |ases, it|. might |
|000007b0| 62 65 20 73 69 6d 70 6c | 65 72 20 74 6f 20 75 73 |be simpl|er to us|
|000007c0| 65 20 74 68 65 20 7b 5c | 74 74 20 73 79 73 74 65 |e the {\|tt syste|
|000007d0| 6d 7d 20 63 6f 6d 6d 61 | 6e 64 2e 0a 0a 5c 53 79 |m} comma|nd...\Sy|
|000007e0| 6e 74 61 78 0a 5c 62 71 | 20 21 7b 5c 69 74 20 63 |ntax.\bq| !{\it c|
|000007f0| 6f 6d 6d 61 6e 64 7d 5c | 65 71 0a 0a 5c 45 78 61 |ommand}\|eq..\Exa|
|00000800| 6d 70 6c 65 0a 5c 62 71 | 20 21 20 6d 61 69 6c 5c |mple.\bq| ! mail\|
|00000810| 65 71 0a 0a 5c 53 65 65 | 61 6c 73 6f 0a 5c 62 71 |eq..\See|also.\bq|
|00000820| 20 61 6c 69 61 73 2c 20 | 6c 73 2c 20 76 69 2c 20 | alias, |ls, vi, |
|00000830| 66 6f 72 65 61 63 68 2c | 20 73 79 73 74 65 6d 2c |foreach,| system,|
|00000840| 20 73 65 74 20 65 78 70 | 61 6e 64 5c 65 71 0a 0a | set exp|and\eq..|
|00000850| 5c 73 65 63 74 69 6f 6e | 7b 3f 7d 0a 0a 20 41 20 |\section|{?}.. A |
|00000860| 71 75 65 73 74 69 6f 6e | 20 6d 61 72 6b 20 77 69 |question| mark wi|
|00000870| 6c 6c 20 69 6e 64 69 63 | 61 74 65 20 5c 66 75 64 |ll indic|ate \fud|
|00000880| 67 69 74 5c 20 74 6f 20 | 74 72 79 20 74 6f 20 67 |git\ to |try to g|
|00000890| 65 74 20 74 68 65 20 70 | 6f 73 73 69 62 6c 65 0a |et the p|ossible.|
|000008a0| 20 6f 70 74 69 6f 6e 73 | 20 61 76 61 69 6c 61 62 | options| availab|
|000008b0| 6c 65 20 74 6f 20 74 68 | 65 20 63 6f 6d 6d 61 6e |le to th|e comman|
|000008c0| 64 20 70 72 65 73 65 6e | 74 6c 79 20 74 79 70 65 |d presen|tly type|
|000008d0| 64 2e 20 54 68 69 73 20 | 6b 69 6e 64 20 6f 66 20 |d. This |kind of |
|000008e0| 68 65 6c 70 20 69 73 0a | 20 63 6f 6e 74 65 78 74 |help is.| context|
|000008f0| 20 73 65 6e 73 69 74 69 | 76 65 20 61 6e 64 20 77 | sensiti|ve and w|
|00000900| 6f 72 6b 73 20 77 68 65 | 6e 20 61 6e 20 69 6e 73 |orks whe|n an ins|
|00000910| 75 66 66 69 63 69 65 6e | 74 20 6e 75 6d 62 65 72 |ufficien|t number|
|00000920| 20 6f 66 20 61 72 67 75 | 6d 65 6e 74 73 0a 20 69 | of argu|ments. i|
|00000930| 73 20 73 75 70 70 6c 69 | 65 64 2e 20 54 68 65 20 |s suppli|ed. The |
|00000940| 71 75 65 73 74 69 6f 6e | 20 6d 61 72 6b 20 61 6c |question| mark al|
|00000950| 73 6f 20 73 65 72 76 65 | 73 20 61 73 20 61 20 77 |so serve|s as a w|
|00000960| 69 6c 64 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |ild char|acter in|
|00000970| 0a 20 73 74 72 69 6e 67 | 20 73 75 62 74 72 61 63 |. string| subtrac|
|00000980| 74 69 6f 6e 2e 0a 0a 5c | 53 79 6e 74 61 78 0a 5c |tion...\|Syntax.\|
|00000990| 62 71 20 7b 5c 69 74 20 | 63 6f 6d 6d 61 6e 64 7d |bq {\it |command}|
|000009a0| 20 3f 20 5c 65 71 0a 0a | 5c 45 78 61 6d 70 6c 65 | ? \eq..|\Example|
|000009b0| 73 0a 5c 62 71 20 3f 5c | 5c 0a 73 68 6f 77 20 3f |s.\bq ?\|\.show ?|
|000009c0| 5c 5c 0a 73 65 74 20 66 | 75 6e 63 74 69 6f 6e 20 |\\.set f|unction |
|000009d0| 3f 5c 65 71 0a 0a 5c 53 | 65 65 61 6c 73 6f 0a 5c |?\eq..\S|eealso.\|
|000009e0| 62 71 20 68 65 6c 70 2c | 20 73 74 72 69 6e 67 73 |bq help,| strings|
|000009f0| 20 5c 65 71 0a 0a 5c 73 | 65 63 74 69 6f 6e 7b 5c | \eq..\s|ection{\|
|00000a00| 24 7d 0a 0a 20 54 68 65 | 20 60 5c 24 27 20 6f 70 |$}.. The| `\$' op|
|00000a10| 65 72 61 74 6f 72 20 65 | 78 70 61 6e 64 73 20 73 |erator e|xpands s|
|00000a20| 63 61 6c 61 72 20 76 61 | 72 69 61 62 6c 65 73 20 |calar va|riables |
|00000a30| 6f 72 20 63 6f 6e 73 74 | 61 6e 74 73 20 28 64 6f |or const|ants (do|
|00000a40| 75 62 6c 65 0a 20 70 72 | 65 63 69 73 69 6f 6e 20 |uble. pr|ecision |
|00000a50| 6e 75 6d 62 65 72 73 20 | 66 72 6f 6d 20 43 2d 63 |numbers |from C-c|
|00000a60| 61 6c 63 75 6c 61 74 6f | 72 20 6d 6f 64 65 20 6c |alculato|r mode l|
|00000a70| 6f 6f 6b 75 70 20 74 61 | 62 6c 65 29 20 61 73 20 |ookup ta|ble) as |
|00000a80| 77 65 6c 6c 20 61 73 0a | 20 73 74 72 69 6e 67 20 |well as.| string |
|00000a90| 76 61 72 69 61 62 6c 65 | 73 20 6f 72 20 63 6f 6e |variable|s or con|
|00000aa0| 73 74 61 6e 74 73 2e 20 | 45 78 69 73 74 69 6e 67 |stants. |Existing|
|00000ab0| 20 73 63 61 6c 61 72 20 | 76 61 72 69 61 62 6c 65 | scalar |variable|
|00000ac0| 73 20 63 61 6e 20 74 68 | 75 73 20 62 65 0a 20 65 |s can th|us be. e|
|00000ad0| 78 70 61 6e 64 65 64 20 | 61 73 20 61 20 73 74 72 |xpanded |as a str|
|00000ae0| 69 6e 67 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |ing in o|rder to |
|00000af0| 73 65 72 76 65 20 61 73 | 20 61 20 66 69 6c 65 20 |serve as| a file |
|00000b00| 6e 61 6d 65 20 6f 72 20 | 64 69 72 65 63 74 6f 72 |name or |director|
|00000b10| 79 0a 20 6e 61 6d 65 2c | 20 66 6f 72 20 65 78 61 |y. name,| for exa|
|00000b20| 6d 70 6c 65 2e 20 54 68 | 65 20 65 78 70 61 6e 73 |mple. Th|e expans|
|00000b30| 69 6f 6e 20 69 73 20 64 | 6f 6e 65 20 61 63 63 6f |ion is d|one acco|
|00000b40| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 76 61 6c |rding to| the val|
|00000b50| 75 65 20 67 69 76 65 6e | 0a 20 74 6f 20 74 68 65 |ue given|. to the|
|00000b60| 20 7b 5c 74 74 20 73 65 | 74 20 76 66 6f 72 6d 61 | {\tt se|t vforma|
|00000b70| 74 7d 20 63 6f 6d 6d 61 | 6e 64 20 77 68 69 63 68 |t} comma|nd which|
|00000b80| 20 69 6e 69 74 69 61 6c | 6c 79 20 64 65 66 61 75 | initial|ly defau|
|00000b90| 6c 74 73 20 74 6f 0a 20 | 60 60 5c 25 2e 33 67 27 |lts to. |``\%.3g'|
|00000ba0| 27 2e 20 55 73 69 6e 67 | 20 74 68 65 20 73 63 61 |'. Using| the sca|
|00000bb0| 6c 61 72 20 76 61 72 69 | 61 62 6c 65 20 65 78 70 |lar vari|able exp|
|00000bc0| 61 6e 73 69 6f 6e 20 6f | 70 65 72 61 74 6f 72 20 |ansion o|perator |
|00000bd0| 69 6e 0a 20 43 2d 63 61 | 6c 63 75 6c 61 74 6f 72 |in. C-ca|lculator|
|00000be0| 20 6d 6f 64 65 20 69 73 | 20 6e 6f 74 20 72 65 63 | mode is| not rec|
|00000bf0| 6f 6d 6d 61 6e 64 65 64 | 20 73 69 6e 63 65 20 61 |ommanded| since a|
|00000c00| 20 6c 6f 74 20 6f 66 20 | 70 72 65 63 69 73 69 6f | lot of |precisio|
|00000c10| 6e 20 6d 69 67 68 74 20 | 62 65 0a 20 6c 6f 73 74 |n might |be. lost|
|00000c20| 20 28 61 63 74 75 61 6c | 6c 79 20 69 74 20 69 73 | (actual|ly it is|
|00000c30| 20 61 20 77 61 73 74 65 | 21 29 2e 20 53 63 61 6c | a waste|!). Scal|
|00000c40| 61 72 20 76 61 72 69 61 | 62 6c 65 20 65 78 70 61 |ar varia|ble expa|
|00000c50| 6e 73 69 6f 6e 20 69 73 | 0a 20 65 73 73 65 6e 74 |nsion is|. essent|
|00000c60| 69 61 6c 6c 79 20 70 72 | 6f 76 69 64 65 64 20 74 |ially pr|ovided t|
|00000c70| 6f 20 61 6c 6c 6f 77 20 | 61 6c 74 65 72 6e 61 74 |o allow |alternat|
|00000c80| 69 76 65 20 70 72 6f 63 | 65 64 75 72 65 73 20 69 |ive proc|edures i|
|00000c90| 6e 20 63 65 72 74 61 69 | 6e 20 63 61 73 65 73 2c |n certai|n cases,|
|00000ca0| 0a 20 73 75 63 68 20 61 | 73 20 67 65 6e 65 72 61 |. such a|s genera|
|00000cb0| 74 69 6e 67 20 66 69 6c | 65 6e 61 6d 65 73 20 66 |ting fil|enames f|
|00000cc0| 72 6f 6d 20 6e 75 6d 62 | 65 72 73 2e 20 4d 61 74 |rom numb|ers. Mat|
|00000cd0| 68 20 66 75 6e 63 74 69 | 6f 6e 20 7b 5c 74 74 20 |h functi|on {\tt |
|00000ce0| 73 63 61 6e 7d 0a 20 63 | 61 6e 20 62 65 20 63 6f |scan}. c|an be co|
|00000cf0| 6e 73 69 64 65 72 65 64 | 20 61 73 20 74 68 65 20 |nsidered| as the |
|00000d00| 63 6f 6d 70 6c 65 6d 65 | 6e 74 20 6f 66 20 73 63 |compleme|nt of sc|
|00000d10| 61 6c 61 72 20 76 61 72 | 69 61 62 6c 65 20 65 78 |alar var|iable ex|
|00000d20| 70 61 6e 73 69 6f 6e 2e | 0a 0a 20 54 68 65 20 60 |pansion.|.. The `|
|00000d30| 5c 24 27 20 63 68 61 72 | 61 63 74 65 72 20 61 6c |\$' char|acter al|
|00000d40| 73 6f 20 65 78 70 61 6e | 64 73 20 73 74 72 69 6e |so expan|ds strin|
|00000d50| 67 20 76 61 72 69 61 62 | 6c 65 73 2e 20 45 78 70 |g variab|les. Exp|
|00000d60| 61 6e 73 69 6f 6e 20 69 | 73 20 64 6f 6e 65 20 62 |ansion i|s done b|
|00000d70| 79 0a 20 72 65 70 6c 61 | 63 69 6e 67 20 74 68 65 |y. repla|cing the|
|00000d80| 20 5c 24 7b 5c 69 74 20 | 53 74 72 69 6e 67 2d 56 | \${\it |String-V|
|00000d90| 61 72 69 61 62 6c 65 2d | 4e 61 6d 65 7d 20 62 79 |ariable-|Name} by|
|00000da0| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | the val|ue of th|
|00000db0| 65 20 73 74 72 69 6e 67 | 0a 20 76 61 72 69 61 62 |e string|. variab|
|00000dc0| 6c 65 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 20 |le. This| can be |
|00000dd0| 75 73 65 64 20 74 6f 20 | 72 65 70 6c 61 63 65 20 |used to |replace |
|00000de0| 7b 5c 74 74 20 73 63 61 | 6e 7d 20 69 6e 20 63 61 |{\tt sca|n} in ca|
|00000df0| 73 65 73 20 77 68 65 72 | 65 20 74 68 65 0a 20 73 |ses wher|e the. s|
|00000e00| 74 72 69 6e 67 20 76 61 | 72 69 61 62 6c 65 20 6f |tring va|riable o|
|00000e10| 72 20 63 6f 6e 73 74 61 | 6e 74 20 72 65 70 72 65 |r consta|nt repre|
|00000e20| 73 65 6e 74 73 20 61 20 | 6e 75 6d 62 65 72 2e 20 |sents a |number. |
|00000e30| 46 6f 72 20 65 78 61 6d | 70 6c 65 0a 5c 6e 6f 70 |For exam|ple.\nop|
|00000e40| 61 67 65 62 72 65 61 6b | 5c 62 65 67 69 6e 7b 76 |agebreak|\begin{v|
|00000e50| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 20 66 6f |erbatim}|. fo|
|00000e60| 72 65 61 63 68 20 46 69 | 6c 65 20 69 6e 20 65 63 |reach Fi|le in ec|
|00000e70| 68 6f 20 32 2e 32 20 34 | 2e 34 20 36 2e 37 20 38 |ho 2.2 4|.4 6.7 8|
|00000e80| 2e 33 32 0a 20 20 20 20 | 20 20 20 20 20 6c 65 74 |.32. | let|
|00000e90| 20 78 20 3d 20 24 46 69 | 6c 65 0a 20 20 20 20 20 | x = $Fi|le. |
|00000ea0| 20 20 20 20 2e 0a 20 20 | 20 20 20 20 20 20 20 2e | .. | .|
|00000eb0| 0a 20 20 20 20 20 20 20 | 20 20 2e 0a 20 20 20 20 |. | .. |
|00000ec0| 20 65 6e 64 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 | end.\en|d{verbat|
|00000ed0| 69 6d 7d 0a 0a 20 49 6e | 20 62 6f 74 68 20 63 61 |im}.. In| both ca|
|00000ee0| 73 65 73 2c 20 69 66 20 | 74 68 65 20 76 61 72 69 |ses, if |the vari|
|00000ef0| 61 62 6c 65 20 6e 61 6d | 65 20 68 61 73 20 74 6f |able nam|e has to|
|00000f00| 20 62 65 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 | be foll|owed by |
|00000f10| 61 6c 70 68 61 6e 75 6d | 65 72 69 63 0a 20 63 68 |alphanum|eric. ch|
|00000f20| 61 72 61 63 74 65 72 73 | 2c 20 74 68 65 6e 20 74 |aracters|, then t|
|00000f30| 68 65 20 76 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 |he varia|ble name|
|00000f40| 20 63 61 6e 20 62 65 20 | 64 65 6c 69 6d 69 74 65 | can be |delimite|
|00000f50| 64 20 62 79 20 62 72 61 | 63 65 73 20 61 73 20 69 |d by bra|ces as i|
|00000f60| 6e 0a 20 73 74 61 6e 64 | 61 72 64 20 63 73 68 2e |n. stand|ard csh.|
|00000f70| 0a 0a 20 46 6f 6c 6c 6f | 77 65 64 20 62 79 20 61 |.. Follo|wed by a|
|00000f80| 6e 20 69 6e 74 65 67 65 | 72 20 6e 75 6d 62 65 72 |n intege|r number|
|00000f90| 2c 20 74 68 65 20 60 5c | 24 27 20 63 68 61 72 61 |, the `\|$' chara|
|00000fa0| 63 74 65 72 20 73 65 72 | 76 65 73 20 74 6f 20 64 |cter ser|ves to d|
|00000fb0| 65 73 69 67 6e 61 74 65 | 0a 20 74 68 65 20 61 72 |esignate|. the ar|
|00000fc0| 67 75 6d 65 6e 74 73 20 | 6f 66 20 61 20 6d 61 63 |guments |of a mac|
|00000fd0| 72 6f 2e 20 52 65 66 65 | 72 20 74 6f 20 74 68 65 |ro. Refe|r to the|
|00000fe0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|00000ff0| 7b 5c 74 74 20 6d 61 63 | 72 6f 7d 2c 0a 20 63 6f |{\tt mac|ro},. co|
|00001000| 6e 63 65 72 6e 69 6e 67 | 20 74 68 69 73 20 70 6f |ncerning| this po|
|00001010| 69 6e 74 2e 0a 0a 5c 53 | 79 6e 74 61 78 0a 5c 62 |int...\S|yntax.\b|
|00001020| 71 20 5c 24 7b 5c 69 74 | 20 6e 61 6d 65 7d 5c 65 |q \${\it| name}\e|
|00001030| 71 0a 20 6f 72 0a 5c 62 | 71 5c 24 5c 7b 7b 5c 69 |q. or.\b|q\$\{{\i|
|00001040| 74 20 6e 61 6d 65 7d 5c | 7d 5c 65 71 0a 0a 5c 53 |t name}\|}\eq..\S|
|00001050| 65 65 61 6c 73 6f 0a 5c | 62 71 20 43 2c 20 63 6d |eealso.\|bq C, cm|
|00001060| 6f 64 65 2c 20 6d 61 63 | 72 6f 2c 20 65 63 68 6f |ode, mac|ro, echo|
|00001070| 2c 20 65 78 69 74 20 5c | 65 71 0a 0a 5c 73 65 63 |, exit \|eq..\sec|
|00001080| 74 69 6f 6e 7b 5c 5f 64 | 75 6d 70 6c 6f 74 7d 0a |tion{\_d|umplot}.|
|00001090| 0a 20 43 6f 6d 6d 61 6e | 64 20 7b 5c 74 74 20 5c |. Comman|d {\tt \|
|000010a0| 5f 64 75 6d 70 6c 6f 74 | 7d 20 69 73 20 67 65 6e |_dumplot|} is gen|
|000010b0| 65 72 61 6c 6c 79 20 75 | 73 65 64 20 69 6e 20 61 |erally u|sed in a|
|000010c0| 20 6d 61 63 72 6f 20 74 | 6f 20 64 75 6d 70 20 76 | macro t|o dump v|
|000010d0| 65 63 74 6f 72 73 0a 20 | 69 6e 20 74 68 65 20 70 |ectors. |in the p|
|000010e0| 6c 6f 74 74 69 6e 67 20 | 70 69 70 65 2e 20 49 74 |lotting |pipe. It|
|000010f0| 20 69 73 20 64 65 73 63 | 72 69 62 65 64 20 69 6e | is desc|ribed in|
|00001100| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 20 75 6e 64 | more de|tail und|
|00001110| 65 72 20 7b 5c 74 74 0a | 20 73 70 65 63 69 61 6c |er {\tt.| special|
|00001120| 7d 20 69 74 65 6d 2e 0a | 0a 5c 73 65 63 74 69 6f |} item..|.\sectio|
|00001130| 6e 7b 5c 5f 6b 69 6c 6c | 70 6c 6f 74 7d 0a 0a 20 |n{\_kill|plot}.. |
|00001140| 43 6f 6d 6d 61 6e 64 20 | 7b 5c 74 74 20 5c 5f 6b |Command |{\tt \_k|
|00001150| 69 6c 6c 70 6c 6f 74 7d | 20 69 73 20 72 61 72 65 |illplot}| is rare|
|00001160| 6c 79 20 75 73 65 64 2e | 20 49 74 20 73 65 6e 64 |ly used.| It send|
|00001170| 73 20 61 20 4b 49 4c 4c | 20 73 69 67 6e 61 6c 20 |s a KILL| signal |
|00001180| 74 6f 20 74 68 65 0a 20 | 70 6c 6f 74 74 69 6e 67 |to the. |plotting|
|00001190| 20 70 72 6f 67 72 61 6d | 2e 20 49 74 20 69 73 20 | program|. It is |
|000011a0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 6d 6f 72 |describe|d in mor|
|000011b0| 65 20 64 65 74 61 69 6c | 20 75 6e 64 65 72 20 7b |e detail| under {|
|000011c0| 5c 74 74 20 73 70 65 63 | 69 61 6c 7d 0a 20 69 74 |\tt spec|ial}. it|
|000011d0| 65 6d 2e 0a 0a 5c 73 65 | 63 74 69 6f 6e 7b 61 64 |em...\se|ction{ad|
|000011e0| 6a 75 73 74 7d 0a 0a 20 | 54 68 65 20 7b 5c 74 74 |just}.. |The {\tt|
|000011f0| 20 61 64 6a 75 73 74 7d | 20 63 6f 6d 6d 61 6e 64 | adjust}| command|
|00001200| 20 69 73 20 75 73 65 64 | 20 74 6f 20 73 70 65 63 | is used| to spec|
|00001210| 69 66 79 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |ify the |paramete|
|00001220| 72 73 20 74 6f 20 62 65 | 0a 20 61 64 6a 75 73 74 |rs to be|. adjust|
|00001230| 65 64 20 69 6e 20 74 68 | 65 20 60 60 6c 65 61 73 |ed in th|e ``leas|
|00001240| 74 20 73 71 75 61 72 65 | 20 6c 69 6e 65 61 72 27 |t square| linear'|
|00001250| 27 20 61 6e 64 20 74 68 | 65 20 60 60 4d 61 72 71 |' and th|e ``Marq|
|00001260| 75 61 72 64 74 2d 4c 65 | 76 65 6e 62 65 72 67 0a |uardt-Le|venberg.|
|00001270| 20 6e 6f 6e 6c 69 6e 65 | 61 72 27 27 20 66 69 74 | nonline|ar'' fit|
|00001280| 74 69 6e 67 20 6d 65 74 | 68 6f 64 73 2e 20 50 61 |ting met|hods. Pa|
|00001290| 72 61 6d 65 74 65 72 73 | 20 6e 6f 74 20 62 65 69 |rameters| not bei|
|000012a0| 6e 67 20 61 64 6a 75 73 | 74 65 64 20 77 69 6c 6c |ng adjus|ted will|
|000012b0| 20 68 61 76 65 0a 20 74 | 68 65 69 72 20 73 74 61 | have. t|heir sta|
|000012c0| 6e 64 61 72 64 20 64 65 | 76 69 61 74 69 6f 6e 20 |ndard de|viation |
|000012d0| 73 65 74 20 74 6f 20 7a | 65 72 6f 2e 0a 0a 5c 53 |set to z|ero...\S|
|000012e0| 79 6e 74 61 78 0a 5c 62 | 71 20 61 64 6a 75 73 74 |yntax.\b|q adjust|
|000012f0| 20 7b 5c 69 74 20 69 6e | 64 65 78 2d 6c 69 73 74 | {\it in|dex-list|
|00001300| 7d 20 5c 65 71 0a 0a 5c | 45 78 61 6d 70 6c 65 0a |} \eq..\|Example.|
|00001310| 5c 62 71 20 61 64 6a 75 | 73 74 20 31 20 32 20 34 |\bq adju|st 1 2 4|
|00001320| 5c 65 71 0a 0a 5c 53 65 | 65 61 6c 73 6f 0a 5c 62 |\eq..\Se|ealso.\b|
|00001330| 71 20 73 65 74 20 70 61 | 72 61 6d 65 74 65 72 73 |q set pa|rameters|
|00001340| 2c 20 73 65 74 20 6d 65 | 74 68 6f 64 2c 20 73 65 |, set me|thod, se|
|00001350| 74 20 66 75 6e 63 74 69 | 6f 6e 2c 20 66 69 74 2c |t functi|on, fit,|
|00001360| 20 73 68 6f 77 20 66 69 | 74 20 5c 65 71 0a 0a 5c | show fi|t \eq..\|
|00001370| 73 65 63 74 69 6f 6e 7b | 61 6c 69 61 73 7d 0a 0a |section{|alias}..|
|00001380| 20 54 68 65 20 7b 5c 74 | 74 20 61 6c 69 61 73 7d | The {\t|t alias}|
|00001390| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 75 73 65 64 | command| is used|
|000013a0| 20 74 6f 20 61 6c 69 61 | 73 20 61 20 6d 75 6c 74 | to alia|s a mult|
|000013b0| 69 70 6c 65 20 77 6f 72 | 64 20 63 6f 6d 6d 61 6e |iple wor|d comman|
|000013c0| 64 20 74 6f 20 61 0a 20 | 73 69 6e 67 6c 65 20 77 |d to a. |single w|
|000013d0| 6f 72 64 2e 20 41 6c 74 | 68 6f 75 67 68 20 6d 61 |ord. Alt|hough ma|
|000013e0| 63 72 6f 73 20 61 6e 64 | 20 61 6c 69 61 73 65 73 |cros and| aliases|
|000013f0| 20 61 72 65 20 64 69 66 | 66 65 72 65 6e 74 20 6f | are dif|ferent o|
|00001400| 62 6a 65 63 74 73 2c 20 | 69 74 20 69 73 0a 20 6e |bjects, |it is. n|
|00001410| 6f 74 20 61 6c 6c 6f 77 | 65 64 20 74 6f 20 64 65 |ot allow|ed to de|
|00001420| 66 69 6e 65 20 61 20 6d | 61 63 72 6f 20 61 6e 64 |fine a m|acro and|
|00001430| 20 61 6e 20 61 6c 69 61 | 73 20 77 69 74 68 20 74 | an alia|s with t|
|00001440| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 73 69 6e |he same |name sin|
|00001450| 63 65 0a 20 61 6c 69 61 | 73 65 73 20 61 72 65 20 |ce. alia|ses are |
|00001460| 61 6c 77 61 79 73 20 65 | 78 70 61 6e 64 65 64 20 |always e|xpanded |
|00001470| 66 69 72 73 74 2e 20 52 | 65 63 61 6c 6c 20 74 68 |first. R|ecall th|
|00001480| 61 74 20 74 68 65 20 62 | 61 6e 67 20 6f 70 65 72 |at the b|ang oper|
|00001490| 61 74 6f 72 0a 20 28 60 | 21 27 29 2c 20 61 74 20 |ator. (`|!'), at |
|000014a0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|000014b0| 20 61 20 6c 69 6e 65 20 | 69 73 20 72 65 63 6f 67 | a line |is recog|
|000014c0| 6e 69 7a 65 64 20 66 72 | 6f 6d 20 61 20 6d 61 63 |nized fr|om a mac|
|000014d0| 72 6f 2c 20 61 6e 20 61 | 6c 69 61 73 0a 20 6f 72 |ro, an a|lias. or|
|000014e0| 20 61 20 73 63 72 69 70 | 74 20 66 69 6c 65 20 73 | a scrip|t file s|
|000014f0| 6f 20 74 68 61 74 20 61 | 6e 20 61 6c 69 61 73 20 |o that a|n alias |
|00001500| 6c 69 6b 65 0a 5c 6e 6f | 70 61 67 65 62 72 65 61 |like.\no|pagebrea|
|00001510| 6b 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |k\begin{|verbatim|
|00001520| 7d 0a 20 20 20 20 20 61 | 6c 69 61 73 20 64 61 74 |}. a|lias dat|
|00001530| 65 20 21 64 61 74 65 0a | 5c 65 6e 64 7b 76 65 72 |e !date.|\end{ver|
|00001540| 62 61 74 69 6d 7d 0a 20 | 69 73 20 70 65 72 66 65 |batim}. |is perfe|
|00001550| 63 74 6c 79 20 6c 65 67 | 61 6c 2e 20 48 6f 77 65 |ctly leg|al. Howe|
|00001560| 76 65 72 2c 20 74 68 69 | 73 20 77 6f 75 6c 64 20 |ver, thi|s would |
|00001570| 68 61 76 65 20 74 6f 20 | 62 65 20 74 79 70 65 64 |have to |be typed|
|00001580| 0a 5c 6e 6f 70 61 67 65 | 62 72 65 61 6b 5c 62 65 |.\nopage|break\be|
|00001590| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|000015a0| 20 20 20 61 6c 69 61 73 | 20 64 61 74 65 20 21 20 | alias| date ! |
|000015b0| 64 61 74 65 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |date.\en|d{verbat|
|000015c0| 69 6d 7d 0a 20 61 74 20 | 74 68 65 20 69 6e 74 65 |im}. at |the inte|
|000015d0| 72 61 63 74 69 76 65 20 | 63 6f 6d 6d 61 6e 64 20 |ractive |command |
|000015e0| 6c 69 6e 65 2c 20 74 6f | 20 61 76 6f 69 64 20 74 |line, to| avoid t|
|000015f0| 68 61 74 20 74 68 65 20 | 60 21 27 20 62 65 20 69 |hat the |`!' be i|
|00001600| 6e 74 65 72 70 72 65 74 | 65 64 0a 20 62 79 20 74 |nterpret|ed. by t|
|00001610| 68 65 20 68 69 73 74 6f | 72 79 20 66 75 6e 63 74 |he histo|ry funct|
|00001620| 69 6f 6e 73 2e 0a 0a 20 | 57 68 65 6e 20 63 61 6c |ions... |When cal|
|00001630| 6c 65 64 20 77 69 74 68 | 6f 75 74 20 61 72 67 75 |led with|out argu|
|00001640| 6d 65 6e 74 73 2c 20 7b | 5c 74 74 20 61 6c 69 61 |ments, {|\tt alia|
|00001650| 73 7d 20 77 69 6c 6c 20 | 6c 69 73 74 20 61 6c 6c |s} will |list all|
|00001660| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0a 20 61 6c | the cur|rent. al|
|00001670| 69 61 73 65 73 2e 20 46 | 6f 72 20 6f 62 76 69 6f |iases. F|or obvio|
|00001680| 75 73 20 72 65 61 73 6f | 6e 73 2c 20 69 74 20 69 |us reaso|ns, it i|
|00001690| 73 20 6e 6f 74 20 61 6c | 6c 6f 77 65 64 20 74 6f |s not al|lowed to|
|000016a0| 20 7b 5c 74 74 20 61 6c | 69 61 73 7d 20 7b 5c 69 | {\tt al|ias} {\i|
|000016b0| 74 0a 20 75 6e 61 6c 69 | 61 73 7d 2e 20 7b 5c 74 |t. unali|as}. {\t|
|000016c0| 74 20 61 6c 69 61 73 7d | 20 61 6c 73 6f 20 73 75 |t alias}| also su|
|000016d0| 70 70 6f 72 74 73 20 74 | 68 65 20 63 6f 6d 6d 61 |pports t|he comma|
|000016e0| 6e 64 20 61 62 62 72 65 | 76 69 61 74 69 6f 6e 20 |nd abbre|viation |
|000016f0| 63 68 61 72 61 63 74 65 | 72 0a 20 60 21 27 2e 20 |characte|r. `!'. |
|00001700| 54 6f 20 65 6e 74 65 72 | 20 61 20 60 21 27 20 77 |To enter| a `!' w|
|00001710| 69 74 68 6f 75 74 20 68 | 61 76 69 6e 67 20 69 74 |ithout h|aving it|
|00001720| 20 69 6e 74 65 72 70 72 | 65 74 65 64 20 62 79 20 | interpr|eted by |
|00001730| 74 68 65 20 68 69 73 74 | 6f 72 79 0a 20 66 75 6e |the hist|ory. fun|
|00001740| 63 74 69 6f 6e 73 2c 20 | 6a 75 73 74 20 7b 5c 74 |ctions, |just {\t|
|00001750| 74 20 73 65 74 20 6e 6f | 65 78 70 61 6e 64 7d 20 |t set no|expand} |
|00001760| 66 6f 72 20 74 68 65 20 | 74 69 6d 65 20 65 6e 74 |for the |time ent|
|00001770| 65 72 69 6e 67 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ering th|e comman|
|00001780| 64 2e 0a 20 57 68 65 6e | 20 61 20 60 21 27 20 69 |d.. When| a `!' i|
|00001790| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 61 6c |s part o|f the al|
|000017a0| 69 61 73 20 6e 61 6d 65 | 20 74 68 69 73 20 69 6e |ias name| this in|
|000017b0| 64 69 63 61 74 65 73 20 | 74 68 61 74 20 74 68 65 |dicates |that the|
|000017c0| 20 61 6c 69 61 73 0a 20 | 63 6f 6d 6d 61 6e 64 20 | alias. |command |
|000017d0| 6e 61 6d 65 20 63 61 6e | 20 62 65 20 61 62 62 72 |name can| be abbr|
|000017e0| 65 76 69 61 74 65 64 20 | 64 6f 77 6e 20 74 6f 20 |eviated |down to |
|000017f0| 74 68 61 74 20 70 6f 69 | 6e 74 2e 20 53 69 6e 63 |that poi|nt. Sinc|
|00001800| 65 20 74 68 65 20 7b 5c | 74 74 20 5c 26 7d 0a 20 |e the {\|tt \&}. |
|00001810| 6f 70 65 72 61 74 6f 72 | 20 69 73 20 75 73 65 64 |operator| is used|
|00001820| 20 74 6f 20 72 65 66 65 | 72 20 74 6f 20 74 68 65 | to refe|r to the|
|00001830| 20 6e 61 74 69 76 65 20 | 63 6f 6d 6d 61 6e 64 73 | native |commands|
|00001840| 2c 20 69 74 20 69 73 20 | 74 68 65 72 65 66 6f 72 |, it is |therefor|
|00001850| 65 0a 20 66 6f 72 62 69 | 64 64 65 6e 20 74 6f 20 |e. forbi|dden to |
|00001860| 73 74 61 72 74 20 61 6e | 20 61 6c 69 61 73 20 6e |start an| alias n|
|00001870| 61 6d 65 20 62 79 20 63 | 68 61 72 61 63 74 65 72 |ame by c|haracter|
|00001880| 20 27 5c 26 27 2e 0a 0a | 5c 53 79 6e 74 61 78 0a | '\&'...|\Syntax.|
|00001890| 5c 62 71 20 61 6c 69 61 | 73 20 7b 5c 69 74 20 63 |\bq alia|s {\it c|
|000018a0| 6f 6d 6d 61 6e 64 7d 20 | 7b 5c 69 74 20 63 6f 6d |ommand} |{\it com|
|000018b0| 6d 61 6e 64 2d 6c 69 73 | 74 7d 20 5c 65 71 0a 0a |mand-lis|t} \eq..|
|000018c0| 5c 45 78 61 6d 70 6c 65 | 73 0a 5c 6e 6f 70 61 67 |\Example|s.\nopag|
|000018d0| 65 62 72 65 61 6b 5c 62 | 65 67 69 6e 7b 76 65 72 |ebreak\b|egin{ver|
|000018e0| 62 61 74 69 6d 7d 0a 20 | 20 20 20 20 61 6c 69 61 |batim}. | alia|
|000018f0| 73 20 6d 76 20 21 6d 76 | 0a 20 20 20 20 20 61 6c |s mv !mv|. al|
|00001900| 69 61 73 20 2e 20 71 75 | 69 74 0a 20 20 20 20 20 |ias . qu|it. |
|00001910| 61 6c 69 61 73 20 64 61 | 21 74 65 20 21 64 61 74 |alias da|!te !dat|
|00001920| 65 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |e.\end{v|erbatim}|
|00001930| 0a 0a 5c 53 65 65 61 6c | 73 6f 0a 5c 62 71 20 21 |..\Seeal|so.\bq !|
|00001940| 2c 20 5c 26 2c 20 6d 61 | 63 72 6f 2c 20 75 6e 61 |, \&, ma|cro, una|
|00001950| 6c 69 61 73 2c 20 73 65 | 74 20 65 78 70 61 6e 64 |lias, se|t expand|
|00001960| 20 5c 65 71 0a 0a 5c 73 | 65 63 74 69 6f 6e 7b 61 | \eq..\s|ection{a|
|00001970| 70 70 65 6e 64 20 61 6e | 64 20 73 61 76 65 7d 0a |ppend an|d save}.|
|00001980| 0a 20 54 68 65 20 7b 5c | 74 74 20 61 70 70 65 6e |. The {\|tt appen|
|00001990| 64 7d 20 63 6f 6d 6d 61 | 6e 64 20 63 61 6e 20 62 |d} comma|nd can b|
|000019a0| 65 20 75 73 65 64 20 74 | 6f 20 61 70 70 65 6e 64 |e used t|o append|
|000019b0| 20 76 61 72 69 6f 75 73 | 20 74 68 69 6e 67 73 20 | various| things |
|000019c0| 74 6f 20 61 6e 0a 20 65 | 78 69 73 74 69 6e 67 20 |to an. e|xisting |
|000019d0| 66 69 6c 65 2e 20 49 66 | 20 74 68 65 20 66 69 6c |file. If| the fil|
|000019e0| 65 20 64 6f 65 73 20 6e | 6f 74 20 61 6c 72 65 61 |e does n|ot alrea|
|000019f0| 64 79 20 65 78 69 73 74 | 73 2c 20 69 74 20 77 69 |dy exist|s, it wi|
|00001a00| 6c 6c 20 62 65 0a 20 61 | 75 74 6f 6d 61 74 69 63 |ll be. a|utomatic|
|00001a10| 61 6c 6c 79 20 63 72 65 | 61 74 65 64 2e 0a 0a 20 |ally cre|ated... |
|00001a20| 54 68 65 20 7b 5c 74 74 | 20 73 61 76 65 7d 20 63 |The {\tt| save} c|
|00001a30| 6f 6d 6d 61 6e 64 20 63 | 61 6e 20 62 65 20 75 73 |ommand c|an be us|
|00001a40| 65 64 20 74 6f 20 73 61 | 76 65 20 76 61 72 69 6f |ed to sa|ve vario|
|00001a50| 75 73 20 74 68 69 6e 67 | 73 20 74 6f 20 61 20 66 |us thing|s to a f|
|00001a60| 69 6c 65 2e 0a 20 49 66 | 20 61 20 66 69 6c 65 20 |ile.. If| a file |
|00001a70| 77 69 74 68 20 74 68 65 | 20 73 61 6d 65 20 6e 61 |with the| same na|
|00001a80| 6d 65 20 61 6c 72 65 61 | 64 79 20 65 78 69 73 74 |me alrea|dy exist|
|00001a90| 73 2c 20 69 74 20 77 69 | 6c 6c 20 62 65 20 6f 76 |s, it wi|ll be ov|
|00001aa0| 65 72 77 72 69 74 74 65 | 6e 0a 20 77 69 74 68 6f |erwritte|n. witho|
|00001ab0| 75 74 20 61 6e 79 20 77 | 61 72 6e 69 6e 67 2e 0a |ut any w|arning..|
|00001ac0| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 61 70 70 |.\subsec|tion{app|
|00001ad0| 65 6e 64 20 68 69 73 74 | 6f 72 79 7d 0a 0a 20 48 |end hist|ory}.. H|
|00001ae0| 69 73 74 6f 72 79 20 63 | 61 6e 20 62 65 20 73 61 |istory c|an be sa|
|00001af0| 76 65 64 20 6f 72 20 61 | 70 70 65 6e 64 65 64 20 |ved or a|ppended |
|00001b00| 74 6f 20 61 20 66 69 6c | 65 2e 20 41 6e 79 20 66 |to a fil|e. Any f|
|00001b10| 69 6c 65 20 73 61 76 65 | 64 20 74 68 69 73 20 77 |ile save|d this w|
|00001b20| 61 79 0a 20 63 61 6e 20 | 6c 61 74 65 72 20 62 65 |ay. can |later be|
|00001b30| 20 65 78 65 63 75 74 65 | 64 20 62 79 20 74 68 65 | execute|d by the|
|00001b40| 20 7b 5c 74 74 20 6c 6f | 61 64 7d 20 63 6f 6d 6d | {\tt lo|ad} comm|
|00001b50| 61 6e 64 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 7b |and. Not|e that {|
|00001b60| 5c 74 74 20 61 70 70 65 | 6e 64 0a 20 68 69 73 74 |\tt appe|nd. hist|
|00001b70| 6f 72 79 7d 20 77 69 6c | 6c 20 73 69 6c 65 6e 74 |ory} wil|l silent|
|00001b80| 6c 79 20 66 61 69 6c 20 | 69 66 20 74 68 65 20 66 |ly fail |if the f|
|00001b90| 69 6c 65 20 64 6f 65 73 | 20 6e 6f 74 20 65 78 69 |ile does| not exi|
|00001ba0| 73 74 2e 0a 0a 5c 53 79 | 6e 74 61 78 0a 5c 62 71 |st...\Sy|ntax.\bq|
|00001bb0| 20 61 70 70 65 6e 64 20 | 68 69 73 74 6f 72 79 20 | append |history |
|00001bc0| 7b 5c 69 74 20 66 69 6c | 65 6e 61 6d 65 7d 5c 5c |{\it fil|ename}\\|
|00001bd0| 0a 73 61 76 65 20 68 69 | 73 74 6f 72 79 20 7b 5c |.save hi|story {\|
|00001be0| 69 74 20 66 69 6c 65 6e | 61 6d 65 7d 5c 65 71 20 |it filen|ame}\eq |
|00001bf0| 0a 0a 5c 53 65 65 61 6c | 73 6f 0a 5c 62 71 20 6c |..\Seeal|so.\bq l|
|00001c00| 6f 61 64 2c 20 6c 69 6e | 65 20 65 64 69 74 69 6e |oad, lin|e editin|
|00001c10| 67 2c 20 66 6d 6f 64 65 | 20 5c 65 71 0a 0a 5c 73 |g, fmode| \eq..\s|
|00001c20| 75 62 73 65 63 74 69 6f | 6e 7b 61 70 70 65 6e 64 |ubsectio|n{append|
|00001c30| 20 6d 61 63 72 6f 73 7d | 0a 0a 20 41 6c 6c 20 74 | macros}|.. All t|
|00001c40| 68 65 20 63 75 72 72 65 | 6e 74 20 6d 61 63 72 6f |he curre|nt macro|
|00001c50| 73 20 61 6e 64 20 61 6c | 69 61 73 65 73 20 63 61 |s and al|iases ca|
|00001c60| 6e 20 62 65 20 73 61 76 | 65 64 20 6f 72 20 61 70 |n be sav|ed or ap|
|00001c70| 70 65 6e 64 65 64 20 74 | 6f 20 61 20 66 69 6c 65 |pended t|o a file|
|00001c80| 2e 0a 20 41 6e 79 20 66 | 69 6c 65 20 73 61 76 65 |.. Any f|ile save|
|00001c90| 64 20 74 68 69 73 20 77 | 61 79 20 63 61 6e 20 62 |d this w|ay can b|
|00001ca0| 65 20 73 75 62 73 65 71 | 75 65 6e 74 6c 79 20 7b |e subseq|uently {|
|00001cb0| 5c 74 74 20 6c 6f 61 64 | 7d 65 64 20 61 74 20 61 |\tt load|}ed at a|
|00001cc0| 6e 79 20 74 69 6d 65 2e | 0a 20 54 6f 20 61 76 6f |ny time.|. To avo|
|00001cd0| 69 64 20 63 6f 6e 66 75 | 73 69 6f 6e 20 62 65 74 |id confu|sion bet|
|00001ce0| 77 65 65 6e 20 64 61 74 | 61 20 66 69 6c 65 73 20 |ween dat|a files |
|00001cf0| 61 6e 64 20 73 63 72 69 | 70 74 20 66 69 6c 65 73 |and scri|pt files|
|00001d00| 20 77 65 20 72 65 63 6f | 6d 6d 61 6e 64 0a 20 74 | we reco|mmand. t|
|00001d10| 68 61 74 20 79 6f 75 20 | 75 73 65 20 74 68 65 20 |hat you |use the |
|00001d20| 7b 5c 69 74 20 2e 66 74 | 7d 20 65 78 74 65 6e 73 |{\it .ft|} extens|
|00001d30| 69 6f 6e 20 66 6f 72 20 | 79 6f 75 72 20 73 63 72 |ion for |your scr|
|00001d40| 69 70 74 20 66 69 6c 65 | 73 2e 0a 0a 5c 53 79 6e |ipt file|s...\Syn|
|00001d50| 74 61 78 0a 5c 62 71 20 | 61 70 70 65 6e 64 20 6d |tax.\bq |append m|
|00001d60| 61 63 72 6f 73 20 7b 5c | 69 74 20 66 69 6c 65 6e |acros {\|it filen|
|00001d70| 61 6d 65 7d 5c 5c 0a 73 | 61 76 65 20 6d 61 63 72 |ame}\\.s|ave macr|
|00001d80| 6f 73 20 7b 5c 69 74 20 | 66 69 6c 65 6e 61 6d 65 |os {\it |filename|
|00001d90| 7d 5c 65 71 0a 0a 5c 53 | 65 65 61 6c 73 6f 0a 5c |}\eq..\S|eealso.\|
|00001da0| 62 71 20 61 6c 69 61 73 | 2c 20 75 6e 61 6c 69 61 |bq alias|, unalia|
|00001db0| 73 2c 20 6c 6f 61 64 2c | 20 73 68 6f 77 2c 20 6d |s, load,| show, m|
|00001dc0| 61 63 72 6f 2c 20 75 6e | 6d 61 63 72 6f 20 5c 65 |acro, un|macro \e|
|00001dd0| 71 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 61 |q..\subs|ection{a|
|00001de0| 70 70 65 6e 64 20 70 61 | 72 61 6d 65 74 65 72 73 |ppend pa|rameters|
|00001df0| 7d 0a 0a 20 50 61 72 61 | 6d 65 74 65 72 73 20 63 |}.. Para|meters c|
|00001e00| 61 6e 20 62 65 20 73 61 | 76 65 64 20 69 6e 74 6f |an be sa|ved into|
|00001e10| 20 61 20 66 69 6c 65 20 | 61 74 20 61 6e 79 20 74 | a file |at any t|
|00001e20| 69 6d 65 2e 20 54 68 65 | 20 6e 75 6d 62 65 72 20 |ime. The| number |
|00001e30| 6f 75 74 70 75 74 0a 20 | 66 6f 72 6d 61 74 20 77 |output. |format w|
|00001e40| 69 6c 6c 20 62 65 20 74 | 68 65 20 6f 6e 65 20 63 |ill be t|he one c|
|00001e50| 68 6f 73 65 6e 20 62 79 | 20 74 68 65 20 7b 5c 74 |hosen by| the {\t|
|00001e60| 74 20 73 65 74 20 66 6f | 72 6d 61 74 7d 20 63 6f |t set fo|rmat} co|
|00001e70| 6d 6d 61 6e 64 2e 20 54 | 68 65 0a 20 63 6f 6c 75 |mmand. T|he. colu|
|00001e80| 6d 6e 20 6f 72 64 65 72 | 20 77 69 6c 6c 20 62 65 |mn order| will be|
|00001e90| 20 61 20 70 61 72 61 6d | 65 74 65 72 20 66 6f 6c | a param|eter fol|
|00001ea0| 6c 6f 77 65 64 20 62 79 | 20 69 74 73 20 73 74 61 |lowed by| its sta|
|00001eb0| 6e 64 61 72 64 20 64 65 | 76 69 61 74 69 6f 6e 2e |ndard de|viation.|
|00001ec0| 0a 20 41 6c 6c 20 63 6f | 6c 75 6d 6e 73 20 61 72 |. All co|lumns ar|
|00001ed0| 65 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 61 |e separa|ted by a|
|00001ee0| 20 74 61 62 2e 20 54 68 | 65 72 65 66 6f 72 65 2c | tab. Th|erefore,|
|00001ef0| 20 69 66 20 6f 6e 65 20 | 68 61 73 20 70 72 65 76 | if one |has prev|
|00001f00| 69 6f 75 73 6c 79 0a 20 | 73 65 74 20 70 61 72 61 |iously. |set para|
|00001f10| 6d 65 74 65 72 73 2c 20 | 69 2e 65 2e 0a 5c 6e 6f |meters, |i.e..\no|
|00001f20| 70 61 67 65 62 72 65 61 | 6b 5c 62 65 67 69 6e 7b |pagebrea|k\begin{|
|00001f30| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 73 |verbatim|}. s|
|00001f40| 65 74 20 70 61 72 61 6d | 65 74 65 72 73 20 4d 59 |et param|eters MY|
|00001f50| 50 41 52 20 33 0a 20 20 | 20 20 20 20 2e 0a 20 20 |PAR 3. | .. |
|00001f60| 20 20 20 20 2e 0a 20 20 | 20 20 20 20 2e 0a 20 20 | .. | .. |
|00001f70| 20 20 20 73 61 76 65 20 | 70 61 72 61 6d 65 74 65 | save |paramete|
|00001f80| 72 73 20 6d 79 66 69 6c | 65 0a 5c 65 6e 64 7b 76 |rs myfil|e.\end{v|
|00001f90| 65 72 62 61 74 69 6d 7d | 0a 20 74 68 65 6e 20 74 |erbatim}|. then t|
|00001fa0| 68 65 72 65 20 77 69 6c | 6c 20 62 65 20 36 20 63 |here wil|l be 6 c|
|00001fb0| 6f 6c 75 6d 6e 73 20 61 | 73 20 66 6f 6c 6c 6f 77 |olumns a|s follow|
|00001fc0| 73 3a 0a 5c 6e 6f 70 61 | 67 65 62 72 65 61 6b 5c |s:.\nopa|gebreak\|
|00001fd0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00001fe0| 4d 59 50 41 52 5b 31 5d | 20 20 20 20 44 4d 59 50 |MYPAR[1]| DMYP|
|00001ff0| 41 52 5b 31 5d 20 20 20 | 20 20 20 20 2e 20 2e 20 |AR[1] | . . |
|00002000| 2e 20 20 20 20 20 20 4d | 59 50 41 52 5b 33 5d 20 |. M|YPAR[3] |
|00002010| 20 20 20 20 44 4d 59 50 | 41 52 5b 33 5d 0a 5c 65 | DMYP|AR[3].\e|
|00002020| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 69 6e |nd{verba|tim}. in|
|00002030| 20 66 69 6c 65 20 7b 5c | 69 74 20 6d 79 66 69 6c | file {\|it myfil|
|00002040| 65 7d 2e 20 4d 6f 73 74 | 20 6f 66 20 74 68 65 20 |e}. Most| of the |
|00002050| 74 69 6d 65 2c 20 74 68 | 65 20 75 73 65 72 20 77 |time, th|e user w|
|00002060| 69 6c 6c 20 64 65 73 69 | 72 65 20 74 6f 0a 20 73 |ill desi|re to. s|
|00002070| 61 76 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |ave para|meters a|
|00002080| 6c 6f 6e 67 20 77 69 74 | 68 20 73 6f 6d 65 20 76 |long wit|h some v|
|00002090| 61 72 69 61 62 6c 65 73 | 20 6f 72 20 63 6f 6e 73 |ariables| or cons|
|000020a0| 74 61 6e 74 73 2e 20 54 | 68 69 73 20 63 61 6e 20 |tants. T|his can |
|000020b0| 62 65 0a 20 64 6f 6e 65 | 20 62 79 20 67 69 76 69 |be. done| by givi|
|000020c0| 6e 67 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |ng the v|ariable |
|000020d0| 6f 72 20 63 6f 6e 73 74 | 61 6e 74 20 28 65 69 74 |or const|ant (eit|
|000020e0| 68 65 72 20 73 74 72 69 | 6e 67 20 6f 72 20 73 63 |her stri|ng or sc|
|000020f0| 61 6c 61 72 29 0a 20 6e | 61 6d 65 73 20 6f 6e 20 |alar). n|ames on |
|00002100| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00002110| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 0a 5c |. For ex|ample,.\|
|00002120| 6e 6f 70 61 67 65 62 72 | 65 61 6b 5c 62 65 67 69 |nopagebr|eak\begi|
|00002130| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 20 |n{verbat|im}. |
|00002140| 20 6c 65 74 20 74 20 3d | 20 30 2e 32 33 0a 20 20 | let t =| 0.23. |
|00002150| 20 20 20 73 65 74 20 70 | 61 72 61 6d 65 74 65 72 | set p|arameter|
|00002160| 73 20 41 20 32 0a 20 20 | 20 20 20 2e 0a 20 20 20 |s A 2. | .. |
|00002170| 20 20 2e 0a 20 20 20 20 | 20 2e 0a 20 20 20 20 20 | .. | .. |
|00002180| 73 61 76 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 |save par|ameters |
|00002190| 74 20 70 61 72 66 69 6c | 65 0a 5c 65 6e 64 7b 76 |t parfil|e.\end{v|
|000021a0| 65 72 62 61 74 69 6d 7d | 0a 20 77 69 6c 6c 20 63 |erbatim}|. will c|
|000021b0| 72 65 61 74 65 20 61 20 | 66 69 6c 65 20 7b 5c 69 |reate a |file {\i|
|000021c0| 74 20 70 61 72 66 69 6c | 65 7d 20 63 6f 6e 74 61 |t parfil|e} conta|
|000021d0| 69 6e 69 6e 67 20 74 68 | 65 20 76 61 6c 75 65 20 |ining th|e value |
|000021e0| 6f 66 20 73 63 61 6c 61 | 72 0a 20 76 61 72 69 61 |of scala|r. varia|
|000021f0| 62 6c 65 20 7b 5c 74 74 | 20 74 7d 2c 20 66 6f 6c |ble {\tt| t}, fol|
|00002200| 6c 6f 77 65 64 20 62 79 | 20 74 68 65 20 32 20 76 |lowed by| the 2 v|
|00002210| 61 6c 75 65 73 20 6f 66 | 20 70 61 72 61 6d 65 74 |alues of| paramet|
|00002220| 65 72 73 20 7b 5c 74 74 | 20 41 7d 2c 0a 20 61 6c |ers {\tt| A},. al|
|00002230| 74 65 72 6e 61 74 65 64 | 20 77 69 74 68 20 74 68 |ternated| with th|
|00002240| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 69 72 |e value |of their|
|00002250| 20 73 74 61 6e 64 61 72 | 64 20 64 65 76 69 61 74 | standar|d deviat|
|00002260| 69 6f 6e 73 20 7b 5c 74 | 74 20 44 41 7d 2e 0a 20 |ions {\t|t DA}.. |
|00002270| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 67 69 |Note tha|t the gi|
|00002280| 76 65 6e 20 6c 69 73 74 | 20 6f 66 20 76 61 72 69 |ven list| of vari|
|00002290| 61 62 6c 65 73 20 77 69 | 6c 6c 20 62 65 20 70 72 |ables wi|ll be pr|
|000022a0| 69 6e 74 65 64 20 66 69 | 72 73 74 2e 0a 0a 5c 53 |inted fi|rst...\S|
|000022b0| 79 6e 74 61 78 0a 5c 62 | 71 20 61 70 70 65 6e 64 |yntax.\b|q append|
|000022c0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 7b 5c 69 74 | paramet|ers {\it|
|000022d0| 20 76 61 72 69 61 62 6c | 65 2d 6c 69 73 74 5c 6f | variabl|e-list\o|
|000022e0| 70 74 69 6f 7d 20 7b 5c | 69 74 20 66 69 6c 65 6e |ptio} {\|it filen|
|000022f0| 61 6d 65 7d 5c 5c 0a 73 | 61 76 65 20 70 61 72 61 |ame}\\.s|ave para|
|00002300| 6d 65 74 65 72 73 20 7b | 5c 69 74 20 76 61 72 69 |meters {|\it vari|
|00002310| 61 62 6c 65 2d 6c 69 73 | 74 5c 6f 70 74 69 6f 7d |able-lis|t\optio}|
|00002320| 20 7b 5c 69 74 20 66 69 | 6c 65 6e 61 6d 65 7d 5c | {\it fi|lename}\|
|00002330| 65 71 0a 0a 5c 53 65 65 | 61 6c 73 6f 0a 5c 62 71 |eq..\See|also.\bq|
|00002340| 20 73 65 74 20 66 6f 72 | 6d 61 74 2c 20 73 65 74 | set for|mat, set|
|00002350| 20 70 61 72 61 6d 65 74 | 65 72 73 2c 20 73 68 6f | paramet|ers, sho|
|00002360| 77 20 70 61 72 61 6d 65 | 74 65 72 73 5c 65 71 0a |w parame|ters\eq.|
|00002370| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 61 70 70 |.\subsec|tion{app|
|00002380| 65 6e 64 20 76 61 72 69 | 61 62 6c 65 73 7d 0a 0a |end vari|ables}..|
|00002390| 20 41 6e 79 20 76 61 72 | 69 61 62 6c 65 20 6f 72 | Any var|iable or|
|000023a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 76 61 72 69 61 | number |of varia|
|000023b0| 62 6c 65 73 20 63 61 6e | 20 62 65 20 73 61 76 65 |bles can| be save|
|000023c0| 64 20 74 6f 20 61 20 66 | 69 6c 65 20 61 74 20 61 |d to a f|ile at a|
|000023d0| 6e 79 0a 20 74 69 6d 65 | 2e 20 56 65 63 74 6f 72 |ny. time|. Vector|
|000023e0| 20 65 6c 65 6d 65 6e 74 | 73 20 72 65 66 65 72 65 | element|s refere|
|000023f0| 6e 63 65 64 20 62 79 20 | 61 6e 20 65 78 70 6c 69 |nced by |an expli|
|00002400| 63 69 74 20 69 6e 64 65 | 78 20 61 72 65 20 63 6f |cit inde|x are co|
|00002410| 6e 73 69 64 65 72 65 64 | 0a 20 61 73 20 76 61 72 |nsidered|. as var|
|00002420| 69 61 62 6c 65 73 2e 20 | 53 74 72 69 6e 67 20 76 |iables. |String v|
|00002430| 61 72 69 61 62 6c 65 73 | 20 61 6e 64 20 63 6f 6e |ariables| and con|
|00002440| 73 74 61 6e 74 73 20 61 | 72 65 20 72 65 63 6f 67 |stants a|re recog|
|00002450| 6e 69 7a 65 64 20 61 73 | 20 77 65 6c 6c 2e 0a 0a |nized as| well...|
|00002460| 5c 53 79 6e 74 61 78 0a | 5c 62 71 20 61 70 70 65 |\Syntax.|\bq appe|
|00002470| 6e 64 20 76 61 72 69 61 | 62 6c 65 73 20 7b 5c 69 |nd varia|bles {\i|
|00002480| 74 20 76 61 72 69 61 62 | 6c 65 2d 6c 69 73 74 7d |t variab|le-list}|
|00002490| 20 7b 5c 69 74 20 66 69 | 6c 65 6e 61 6d 65 7d 20 | {\it fi|lename} |
|000024a0| 5c 5c 0a 73 61 76 65 20 | 76 61 72 69 61 62 6c 65 |\\.save |variable|
|000024b0| 73 20 7b 5c 69 74 20 76 | 61 72 69 61 62 6c 65 2d |s {\it v|ariable-|
|000024c0| 6c 69 73 74 7d 20 7b 5c | 69 74 20 66 69 6c 65 6e |list} {\|it filen|
|000024d0| 61 6d 65 7d 5c 65 71 0a | 0a 5c 45 78 61 6d 70 6c |ame}\eq.|.\Exampl|
|000024e0| 65 73 0a 5c 6e 6f 70 61 | 67 65 62 72 65 61 6b 5c |es.\nopa|gebreak\|
|000024f0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00002500| 20 20 20 20 20 61 70 70 | 65 6e 64 20 76 61 72 69 | app|end vari|
|00002510| 61 62 6c 65 73 20 78 20 | 59 5b 33 5d 20 61 20 56 |ables x |Y[3] a V|
|00002520| 45 43 54 4f 52 5b 37 38 | 5d 20 64 61 74 61 66 69 |ECTOR[78|] datafi|
|00002530| 6c 65 31 0a 20 20 20 20 | 20 73 61 76 65 20 76 61 |le1. | save va|
|00002540| 72 69 61 62 6c 65 73 20 | 74 20 50 41 52 41 4d 5b |riables |t PARAM[|
|00002550| 32 5d 20 44 50 41 52 41 | 4d 5b 32 5d 20 64 61 74 |2] DPARA|M[2] dat|
|00002560| 61 66 69 6c 65 32 0a 5c | 65 6e 64 7b 76 65 72 62 |afile2.\|end{verb|
|00002570| 61 74 69 6d 7d 0a 0a 5c | 53 65 65 61 6c 73 6f 0a |atim}..\|Seealso.|
|00002580| 5c 62 71 20 6c 6f 61 64 | 2c 20 63 6d 6f 64 65 2c |\bq load|, cmode,|
|00002590| 20 6c 65 74 2c 20 43 2c | 20 73 68 6f 77 2c 20 61 | let, C,| show, a|
|000025a0| 75 74 6f 20 5c 65 71 0a | 0a 5c 73 75 62 73 65 63 |uto \eq.|.\subsec|
|000025b0| 74 69 6f 6e 7b 61 70 70 | 65 6e 64 20 76 65 63 74 |tion{app|end vect|
|000025c0| 6f 72 73 7d 0a 0a 20 41 | 6e 79 20 76 65 63 74 6f |ors}.. A|ny vecto|
|000025d0| 72 20 6f 72 20 6e 75 6d | 62 65 72 20 6f 66 20 76 |r or num|ber of v|
|000025e0| 65 63 74 6f 72 73 20 63 | 61 6e 20 62 65 20 73 61 |ectors c|an be sa|
|000025f0| 76 65 64 20 74 6f 20 61 | 20 66 69 6c 65 2e 20 41 |ved to a| file. A|
|00002600| 6c 6c 20 74 68 65 20 76 | 61 6c 75 65 73 0a 20 61 |ll the v|alues. a|
|00002610| 72 65 20 77 72 69 74 74 | 65 6e 20 69 6e 20 63 6f |re writt|en in co|
|00002620| 6c 75 6d 6e 73 20 73 65 | 70 61 72 61 74 65 64 20 |lumns se|parated |
|00002630| 62 79 20 61 20 74 61 62 | 2e 20 54 68 65 20 6e 75 |by a tab|. The nu|
|00002640| 6d 62 65 72 20 66 6f 72 | 6d 61 74 20 77 69 6c 6c |mber for|mat will|
|00002650| 20 62 65 0a 20 74 68 65 | 20 6f 6e 65 20 63 68 6f | be. the| one cho|
|00002660| 73 65 6e 20 62 79 20 74 | 68 65 20 7b 5c 74 74 20 |sen by t|he {\tt |
|00002670| 73 65 74 20 66 6f 72 6d | 61 74 7d 20 63 6f 6d 6d |set form|at} comm|
|00002680| 61 6e 64 2e 0a 0a 5c 53 | 79 6e 74 61 78 0a 5c 62 |and...\S|yntax.\b|
|00002690| 71 20 61 70 70 65 6e 64 | 20 76 65 63 74 6f 72 73 |q append| vectors|
|000026a0| 20 7b 5c 69 74 20 56 45 | 43 54 4f 52 2d 6c 69 73 | {\it VE|CTOR-lis|
|000026b0| 74 7d 20 7b 5c 69 74 20 | 66 69 6c 65 6e 61 6d 65 |t} {\it |filename|
|000026c0| 7d 5c 5c 0a 73 61 76 65 | 20 76 65 63 74 6f 72 73 |}\\.save| vectors|
|000026d0| 20 7b 5c 69 74 20 56 45 | 43 54 4f 52 2d 6c 69 73 | {\it VE|CTOR-lis|
|000026e0| 74 7d 20 7b 5c 69 74 20 | 66 69 6c 65 6e 61 6d 65 |t} {\it |filename|
|000026f0| 7d 5c 65 71 0a 0a 5c 45 | 78 61 6d 70 6c 65 73 0a |}\eq..\E|xamples.|
|00002700| 5c 6e 6f 70 61 67 65 62 | 72 65 61 6b 5c 62 65 67 |\nopageb|reak\beg|
|00002710| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 20 20 |in{verba|tim}. |
|00002720| 20 61 70 70 65 6e 64 20 | 76 65 63 74 6f 72 73 20 | append |vectors |
|00002730| 58 20 59 20 45 52 52 4f | 52 31 20 54 45 53 54 32 |X Y ERRO|R1 TEST2|
|00002740| 20 64 61 74 61 66 69 6c | 65 31 0a 20 20 20 20 73 | datafil|e1. s|
|00002750| 61 76 65 20 76 65 63 74 | 6f 72 73 20 54 49 4d 45 |ave vect|ors TIME|
|00002760| 20 54 45 4d 50 20 44 54 | 20 64 61 74 61 66 69 6c | TEMP DT| datafil|
|00002770| 65 32 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |e2.\end{|verbatim|
|00002780| 7d 0a 0a 5c 53 65 65 61 | 6c 73 6f 0a 5c 62 71 20 |}..\Seea|lso.\bq |
|00002790| 73 65 74 20 66 6f 72 6d | 61 74 2c 20 73 65 74 20 |set form|at, set |
|000027a0| 64 61 74 61 2c 20 72 65 | 61 64 2c 20 66 69 74 2c |data, re|ad, fit,|
|000027b0| 20 66 66 74 2c 20 73 68 | 6f 77 2c 20 61 75 74 6f | fft, sh|ow, auto|
|000027c0| 20 5c 65 71 0a 0a 5c 73 | 65 63 74 69 6f 6e 7b 61 | \eq..\s|ection{a|
|000027d0| 75 74 6f 7d 0a 0a 20 54 | 68 65 20 7b 5c 74 74 20 |uto}.. T|he {\tt |
|000027e0| 61 75 74 6f 7d 20 6b 65 | 79 77 6f 72 64 20 69 73 |auto} ke|yword is|
|000027f0| 20 75 73 65 64 20 74 6f | 20 64 65 66 69 6e 65 20 | used to| define |
|00002800| 61 75 74 6f 6d 61 74 69 | 63 20 76 61 72 69 61 62 |automati|c variab|
|00002810| 6c 65 73 2e 20 54 68 65 | 20 74 79 70 65 0a 20 6f |les. The| type. o|
|00002820| 66 20 76 61 72 69 61 62 | 6c 65 20 63 61 6e 20 62 |f variab|le can b|
|00002830| 65 20 61 20 73 63 61 6c | 61 72 20 76 61 72 69 61 |e a scal|ar varia|
|00002840| 62 6c 65 2c 20 61 20 56 | 45 43 54 4f 52 20 6f 72 |ble, a V|ECTOR or|
|00002850| 20 61 20 53 74 72 69 6e | 67 2c 20 64 65 70 65 6e | a Strin|g, depen|
|00002860| 64 69 6e 67 0a 20 6f 6e | 20 74 68 65 20 75 70 70 |ding. on| the upp|
|00002870| 65 72 2d 6c 6f 77 65 72 | 20 63 61 73 65 20 6c 65 |er-lower| case le|
|00002880| 74 74 65 72 73 20 69 6e | 20 74 68 65 20 76 61 72 |tters in| the var|
|00002890| 69 61 62 6c 65 20 6e 61 | 6d 65 2e 20 54 68 65 20 |iable na|me. The |
|000028a0| 73 63 6f 70 65 20 6f 66 | 0a 20 61 75 74 6f 20 76 |scope of|. auto v|
|000028b0| 61 72 69 61 62 6c 65 73 | 20 69 73 20 64 65 6c 69 |ariables| is deli|
|000028c0| 6d 69 74 65 64 20 62 79 | 20 62 72 61 63 65 73 20 |mited by| braces |
|000028d0| 61 73 20 69 6e 20 43 2e | 20 41 6c 6c 20 61 75 74 |as in C.| All aut|
|000028e0| 6f 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 0a |o variab|les are.|
|000028f0| 20 73 74 6f 72 65 64 20 | 6f 6e 20 74 68 65 20 73 | stored |on the s|
|00002900| 74 61 63 6b 20 61 6e 64 | 20 61 72 65 20 66 72 65 |tack and| are fre|
|00002910| 65 64 20 77 68 65 6e 20 | 74 68 65 20 73 63 6f 70 |ed when |the scop|
|00002920| 65 20 6f 66 20 74 68 65 | 20 76 61 72 69 61 62 6c |e of the| variabl|
|00002930| 65 20 69 73 0a 20 6c 65 | 66 74 2e 20 44 65 66 69 |e is. le|ft. Defi|
|00002940| 6e 69 74 69 6f 6e 20 6f | 66 20 76 61 72 69 61 62 |nition o|f variab|
|00002950| 6c 65 73 20 63 61 6e 20 | 6f 6e 6c 79 20 62 65 20 |les can |only be |
|00002960| 64 6f 6e 65 20 72 69 67 | 68 74 20 61 66 74 65 72 |done rig|ht after|
|00002970| 20 61 20 62 72 61 63 65 | 20 68 61 73 0a 20 62 65 | a brace| has. be|
|00002980| 65 6e 20 6f 70 65 6e 65 | 64 2e 20 4f 6e 6c 79 20 |en opene|d. Only |
|00002990| 73 63 61 6c 61 72 20 76 | 61 72 69 61 62 6c 65 73 |scalar v|ariables|
|000029a0| 20 63 61 6e 20 62 65 20 | 61 73 73 69 67 6e 65 64 | can be |assigned|
|000029b0| 20 61 73 20 74 68 65 20 | 61 72 65 20 64 65 66 69 | as the |are defi|
|000029c0| 6e 65 64 2c 0a 20 77 68 | 69 6c 65 20 76 65 63 74 |ned,. wh|ile vect|
|000029d0| 6f 72 73 20 61 72 65 20 | 61 73 73 69 67 6e 65 64 |ors are |assigned|
|000029e0| 20 74 6f 20 7a 65 72 6f | 2c 20 61 6e 64 20 73 74 | to zero|, and st|
|000029f0| 72 69 6e 67 73 20 61 72 | 65 20 65 6d 70 74 79 2e |rings ar|e empty.|
|00002a00| 20 43 6f 6e 74 72 61 72 | 69 6c 79 0a 20 74 6f 20 | Contrar|ily. to |
|00002a10| 43 2c 20 61 75 74 6f 6d | 61 74 69 63 20 73 63 61 |C, autom|atic sca|
|00002a20| 6c 61 72 20 76 61 72 69 | 61 62 6c 65 73 20 61 72 |lar vari|ables ar|
|00002a30| 65 20 73 65 74 20 74 6f | 20 7a 65 72 6f 20 69 66 |e set to| zero if|
|00002a40| 20 6e 6f 74 20 61 73 73 | 69 67 6e 65 64 2e 0a 20 | not ass|igned.. |
|00002a50| 7b 5c 74 74 20 61 75 74 | 6f 7d 20 69 73 20 61 20 |{\tt aut|o} is a |
|00002a60| 43 2d 63 61 6c 63 75 6c | 61 74 6f 72 20 6d 6f 64 |C-calcul|ator mod|
|00002a70| 65 20 6b 65 79 77 6f 72 | 64 2e 0a 0a 5c 53 79 6e |e keywor|d...\Syn|
|00002a80| 74 61 78 0a 5c 62 71 20 | 61 75 74 6f 20 7b 5c 69 |tax.\bq |auto {\i|
|00002a90| 74 20 76 61 72 2d 6c 69 | 73 74 7d 20 5c 65 71 0a |t var-li|st} \eq.|
|00002aa0| 0a 5c 45 78 61 6d 70 6c | 65 73 0a 5c 6e 6f 70 61 |.\Exampl|es.\nopa|
|00002ab0| 67 65 62 72 65 61 6b 5c | 62 65 67 69 6e 7b 76 65 |gebreak\|begin{ve|
|00002ac0| 72 62 61 74 69 6d 7d 0a | 20 20 20 20 20 23 20 53 |rbatim}.| # S|
|00002ad0| 6f 6d 65 20 64 75 6d 6d | 79 20 65 78 61 6d 70 6c |ome dumm|y exampl|
|00002ae0| 65 73 0a 20 20 20 20 20 | 73 65 74 20 64 61 74 61 |es. |set data|
|00002af0| 20 31 30 30 0a 20 20 20 | 20 20 63 6d 6f 64 65 0a | 100. | cmode.|
|00002b00| 20 20 20 20 20 20 20 20 | 78 20 3d 20 79 20 3d 20 | |x = y = |
|00002b10| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00002b20| 20 23 20 54 68 65 73 65 | 20 28 78 2c 20 79 29 20 | # These| (x, y) |
|00002b30| 61 72 65 20 67 6c 6f 62 | 61 6c 0a 20 20 20 20 20 |are glob|al. |
|00002b40| 20 20 20 58 20 3d 20 79 | 2b 2b 20 20 20 20 20 20 | X = y|++ |
|00002b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 41 73 | | # As|
|00002b60| 20 77 65 6c 6c 20 61 73 | 20 76 65 63 74 6f 72 20 | well as| vector |
|00002b70| 58 0a 20 20 20 20 20 20 | 20 20 7b 20 61 75 74 6f |X. | { auto|
|00002b80| 20 78 3d 32 2c 20 58 2c | 20 59 20 20 20 20 20 20 | x=2, X,| Y |
|00002b90| 20 20 20 23 20 41 6c 6c | 20 74 68 65 73 65 20 76 | # All| these v|
|00002ba0| 61 72 69 61 62 6c 65 73 | 20 61 72 65 20 6c 6f 63 |ariables| are loc|
|00002bb0| 61 6c 2e 2e 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |al.... | |
|00002bc0| 20 58 3d 33 3b 20 59 3d | 73 69 6e 28 78 29 0a 20 | X=3; Y=|sin(x). |
|00002bd0| 20 20 20 20 20 20 20 20 | 20 20 20 2e 0a 20 20 20 | | .. |
|00002be0| 20 20 20 20 20 20 20 20 | 20 2e 0a 20 20 20 20 20 | | .. |
|00002bf0| 20 20 20 20 20 20 20 2e | 0a 20 20 20 20 20 20 20 | .|. |
|00002c00| 20 7d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | } | |
|00002c10| 20 20 20 20 20 20 20 20 | 20 20 23 20 2e 2e 2e 61 | | # ...a|
|00002c20| 6e 64 20 73 74 6f 70 20 | 65 78 69 73 74 69 6e 67 |nd stop |existing|
|00002c30| 20 68 65 72 65 0a 20 20 | 20 20 20 20 20 20 78 20 | here. | x |
|00002c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c50| 20 20 20 20 20 20 20 23 | 20 54 68 69 73 20 78 20 | #| This x |
|00002c60| 73 74 69 6c 6c 20 63 6f | 6e 74 61 69 6e 73 20 31 |still co|ntains 1|
|00002c70| 0a 20 20 20 20 20 23 20 | 41 6e 20 65 78 61 6d 70 |. # |An examp|
|00002c80| 6c 65 20 77 69 74 68 20 | 61 20 70 72 6f 63 65 64 |le with |a proced|
|00002c90| 75 72 65 0a 20 20 20 20 | 20 20 20 20 70 72 6f 63 |ure. | proc|
|00002ca0| 20 74 65 73 74 28 78 29 | 20 7b 0a 20 20 20 20 20 | test(x)| {. |
|00002cb0| 20 20 20 20 20 20 61 75 | 74 6f 20 79 3d 32 0a 20 | au|to y=2. |
|00002cc0| 20 20 20 20 20 20 20 20 | 20 20 7a 20 3d 20 78 20 | | z = x |
|00002cd0| 2b 20 79 2b 2b 20 20 20 | 20 20 20 20 20 20 20 20 |+ y++ | |
|00002ce0| 23 20 54 68 69 73 20 7a | 20 69 73 20 67 6c 6f 62 |# This z| is glob|
|00002cf0| 61 6c 0a 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 |al. | }. |
|00002d00| 20 20 66 6d 6f 64 65 0a | 5c 65 6e 64 7b 76 65 72 | fmode.|\end{ver|
|00002d10| 62 61 74 69 6d 7d 0a 0a | 5c 53 65 65 61 6c 73 6f |batim}..|\Seealso|
|00002d20| 0a 5c 62 71 20 43 2c 20 | 63 6d 6f 64 65 2c 20 66 |.\bq C, |cmode, f|
|00002d30| 75 6e 63 2c 20 70 72 6f | 63 5c 65 71 0a 0a 5c 73 |unc, pro|c\eq..\s|
|00002d40| 65 63 74 69 6f 6e 7b 62 | 72 65 61 6b 7d 0a 0a 20 |ection{b|reak}.. |
|00002d50| 54 68 65 20 7b 5c 74 74 | 20 62 72 65 61 6b 7d 20 |The {\tt| break} |
|00002d60| 6b 65 79 77 6f 72 64 20 | 69 73 20 75 73 65 64 20 |keyword |is used |
|00002d70| 61 73 20 69 6e 20 43 20 | 74 6f 20 62 72 65 61 6b |as in C |to break|
|00002d80| 20 43 2d 63 61 6c 63 75 | 6c 61 74 6f 72 20 6d 6f | C-calcu|lator mo|
|00002d90| 64 65 0a 20 7b 5c 74 74 | 20 66 6f 72 7d 20 6f 72 |de. {\tt| for} or|
|00002da0| 20 7b 5c 74 74 20 77 68 | 69 6c 65 7d 20 6c 6f 6f | {\tt wh|ile} loo|
|00002db0| 70 73 2e 20 7b 5c 74 74 | 20 62 72 65 61 6b 7d 20 |ps. {\tt| break} |
|00002dc0| 69 73 20 61 20 43 2d 63 | 61 6c 63 75 6c 61 74 6f |is a C-c|alculato|
|00002dd0| 72 20 6d 6f 64 65 0a 20 | 63 6f 6d 6d 61 6e 64 2e |r mode. |command.|
|00002de0| 0a 0a 5c 53 79 6e 74 61 | 78 0a 5c 62 71 20 62 72 |..\Synta|x.\bq br|
|00002df0| 65 61 6b 20 5c 65 71 0a | 0a 5c 53 65 65 61 6c 73 |eak \eq.|.\Seeals|
|00002e00| 6f 0a 5c 62 71 20 43 2c | 20 63 6f 6e 74 69 6e 75 |o.\bq C,| continu|
|00002e10| 65 2c 20 63 6d 6f 64 65 | 2c 20 66 6f 72 2c 20 77 |e, cmode|, for, w|
|00002e20| 68 69 6c 65 20 5c 65 71 | 0a 0a 5c 73 65 63 74 69 |hile \eq|..\secti|
|00002e30| 6f 6e 7b 43 7d 0a 0a 20 | 54 68 65 20 66 6f 6c 6c |on{C}.. |The foll|
|00002e40| 6f 77 69 6e 67 20 67 69 | 76 65 73 20 61 20 62 72 |owing gi|ves a br|
|00002e50| 69 65 66 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |ief desc|ription |
|00002e60| 6f 66 20 74 68 65 20 73 | 75 70 70 6f 72 74 65 64 |of the s|upported|
|00002e70| 20 43 2d 63 61 6c 63 75 | 6c 61 74 6f 72 0a 20 73 | C-calcu|lator. s|
|00002e80| 79 6e 74 61 78 20 61 6e | 64 20 64 69 66 66 65 72 |yntax an|d differ|
|00002e90| 65 6e 63 65 73 20 77 69 | 74 68 20 73 74 61 6e 64 |ences wi|th stand|
|00002ea0| 61 72 64 20 43 2e 0a 0a | 20 54 68 65 20 66 6f 6c |ard C...| The fol|
|00002eb0| 6c 6f 77 69 6e 67 20 6f | 70 65 72 61 74 6f 72 73 |lowing o|perators|
|00002ec0| 20 61 72 65 20 72 65 63 | 6f 67 6e 69 7a 65 64 2c | are rec|ognized,|
|00002ed0| 20 69 6e 20 6f 72 64 65 | 72 20 6f 66 20 70 72 65 | in orde|r of pre|
|00002ee0| 63 65 64 65 6e 63 65 3a | 0a 5c 6e 6f 70 61 67 65 |cedence:|.\nopage|
|00002ef0| 62 72 65 61 6b 5c 62 65 | 67 69 6e 7b 76 65 72 62 |break\be|gin{verb|
|00002f00| 61 74 69 6d 7d 0a 20 20 | 20 20 2b 2b 2c 20 2d 2d |atim}. | ++, --|
|00002f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f20| 20 20 20 20 20 20 20 20 | 20 20 28 70 6f 73 74 20 | | (post |
|00002f30| 61 6e 64 20 70 72 65 29 | 20 69 6e 63 72 65 6d 65 |and pre)| increme|
|00002f40| 6e 74 2d 64 65 63 72 65 | 6d 65 6e 74 0a 20 20 20 |nt-decre|ment. |
|00002f50| 20 2d 2c 20 21 20 20 20 | 20 20 20 20 20 20 20 20 | -, ! | |
|00002f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f70| 20 75 6e 61 72 79 20 6d | 69 6e 75 73 20 61 6e 64 | unary m|inus and|
|00002f80| 20 6c 6f 67 69 63 61 6c | 20 4e 4f 54 0a 20 20 20 | logical| NOT. |
|00002f90| 20 5e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | ^ | |
|00002fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fb0| 20 65 78 70 6f 6e 65 6e | 74 69 61 74 69 6f 6e 2c | exponen|tiation,|
|00002fc0| 20 72 69 67 68 74 20 61 | 73 73 6f 63 69 61 74 69 | right a|ssociati|
|00002fd0| 76 65 0a 20 20 20 20 2f | 2c 20 2a 2c 20 25 20 20 |ve. /|, *, % |
|00002fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ff0| 20 20 20 20 20 20 20 64 | 69 76 69 73 69 6f 6e 2c | d|ivision,|
|00003000| 20 6d 75 6c 74 69 70 6c | 69 63 61 74 69 6f 6e 2c | multipl|ication,|
|00003010| 20 6d 6f 64 75 6c 6f 0a | 20 20 20 20 2b 2c 20 2d | modulo.| +, -|
|00003020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003030| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 64 64 69 | | addi|
|00003040| 74 69 6f 6e 2c 20 73 75 | 62 74 72 61 63 74 69 6f |tion, su|btractio|
|00003050| 6e 0a 20 20 20 20 3e 2c | 20 3e 3d 2c 20 3c 2c 20 |n. >,| >=, <, |
|00003060| 3c 3d 2c 20 3d 3d 2c 20 | 21 3d 20 20 20 20 20 20 |<=, ==, |!= |
|00003070| 20 20 20 20 20 20 72 65 | 6c 61 74 69 6f 6e 61 6c | re|lational|
|00003080| 20 6f 70 65 72 61 74 6f | 72 73 0a 20 20 20 20 26 | operato|rs. &|
|00003090| 26 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |& | |
|000030a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|000030b0| 6f 67 69 63 61 6c 20 41 | 4e 44 0a 20 20 20 20 7c |ogical A|ND. ||
|000030c0| 7c 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 || | |
|000030d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6c | | l|
|000030e0| 6f 67 69 63 61 6c 20 4f | 52 0a 20 20 20 20 3d 2c |ogical O|R. =,|
|000030f0| 20 2b 3d 2c 20 2d 3d 2c | 20 2f 3d 2c 20 2a 3d 20 | +=, -=,| /=, *= |
|00003100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 73 | | as|
|00003110| 73 69 67 6e 6d 65 6e 74 | 73 2c 20 72 69 67 68 74 |signment|s, right|
|00003120| 20 61 73 73 6f 63 69 61 | 74 69 76 65 0a 5c 65 6e | associa|tive.\en|
|00003130| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 0a 20 41 6c |d{verbat|im}.. Al|
|00003140| 6c 20 6f 70 65 72 61 74 | 6f 72 73 20 61 72 65 20 |l operat|ors are |
|00003150| 6c 65 66 74 20 61 73 73 | 6f 63 69 61 74 69 76 65 |left ass|ociative|
|00003160| 73 20 65 78 63 65 70 74 | 20 74 68 6f 73 65 20 73 |s except| those s|
|00003170| 70 65 63 69 66 69 65 64 | 2e 0a 20 54 68 65 79 20 |pecified|.. They |
|00003180| 61 72 65 20 61 6c 6c 20 | 63 6f 6d 6d 6f 6e 20 74 |are all |common t|
|00003190| 6f 20 43 20 65 78 63 65 | 70 74 20 66 6f 72 20 74 |o C exce|pt for t|
|000031a0| 68 65 20 65 78 70 6f 6e | 65 6e 74 69 61 74 69 6f |he expon|entiatio|
|000031b0| 6e 20 6f 70 65 72 61 74 | 6f 72 2e 0a 0a 20 54 68 |n operat|or... Th|
|000031c0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6b 65 79 77 |e follow|ing keyw|
|000031d0| 6f 72 64 73 20 61 72 65 | 20 72 65 73 65 72 76 65 |ords are| reserve|
|000031e0| 64 20 74 6f 6b 65 6e 73 | 3a 20 20 7b 5c 74 74 20 |d tokens|: {\tt |
|000031f0| 61 75 74 6f 2c 20 69 66 | 2c 20 65 6c 73 65 2c 20 |auto, if|, else, |
|00003200| 77 68 69 6c 65 2c 0a 20 | 66 6f 72 2c 20 62 72 65 |while,. |for, bre|
|00003210| 61 6b 2c 20 63 6f 6e 74 | 69 6e 75 65 7d 2c 20 61 |ak, cont|inue}, a|
|00003220| 6e 64 20 7b 5c 74 74 20 | 72 65 74 75 72 6e 7d 2c |nd {\tt |return},|
|00003230| 20 70 6c 75 73 20 74 77 | 6f 20 65 78 74 72 61 20 | plus tw|o extra |
|00003240| 6b 65 79 77 6f 72 64 73 | 20 7b 5c 74 74 0a 20 70 |keywords| {\tt. p|
|00003250| 72 6f 63 2c 20 66 75 6e | 63 7d 2e 20 54 68 65 79 |roc, fun|c}. They|
|00003260| 20 72 6f 75 67 68 6c 79 | 20 6f 62 65 79 20 74 68 | roughly| obey th|
|00003270| 65 20 73 61 6d 65 20 73 | 79 6e 74 61 78 20 61 73 |e same s|yntax as|
|00003280| 20 69 6e 20 43 20 73 6f | 20 74 68 61 74 20 73 74 | in C so| that st|
|00003290| 61 74 65 6d 65 6e 74 73 | 0a 20 6c 69 6b 65 3a 0a |atements|. like:.|
|000032a0| 0a 5c 62 71 20 69 66 20 | 28 7b 5c 69 74 20 63 6f |.\bq if |({\it co|
|000032b0| 6e 64 69 74 69 6f 6e 73 | 7d 29 5c 5c 0a 20 20 20 |nditions|})\\. |
|000032c0| 20 7b 5c 69 74 20 63 6d | 6f 64 65 2d 6c 69 6e 65 | {\it cm|ode-line|
|000032d0| 2d 73 74 61 74 65 6d 65 | 6e 74 7d 5c 65 71 0a 20 |-stateme|nt}\eq. |
|000032e0| 6f 72 0a 5c 62 71 20 69 | 66 20 28 7b 5c 69 74 20 |or.\bq i|f ({\it |
|000032f0| 63 6f 6e 64 69 74 69 6f | 6e 73 7d 29 20 7b 5c 69 |conditio|ns}) {\i|
|00003300| 74 20 63 6d 6f 64 65 2d | 6c 69 6e 65 2d 73 74 61 |t cmode-|line-sta|
|00003310| 74 65 6d 65 6e 74 7d 20 | 5c 65 71 0a 20 6f 72 0a |tement} |\eq. or.|
|00003320| 5c 62 71 20 69 66 20 28 | 7b 5c 69 74 20 63 6f 6e |\bq if (|{\it con|
|00003330| 64 69 74 69 6f 6e 73 7d | 29 20 5c 7b 5c 5c 0a 20 |ditions}|) \{\\. |
|00003340| 20 20 20 20 7b 5c 69 74 | 20 63 6d 6f 64 65 2d 73 | {\it| cmode-s|
|00003350| 74 61 74 65 6d 65 6e 74 | 73 7d 5c 5c 0a 5c 7d 5c |tatement|s}\\.\}\|
|00003360| 65 71 0a 0a 20 54 68 65 | 20 73 61 6d 65 20 74 68 |eq.. The| same th|
|00003370| 69 6e 67 20 69 73 20 74 | 72 75 65 20 66 6f 72 20 |ing is t|rue for |
|00003380| 74 68 65 20 65 6c 73 65 | 20 63 6f 6e 73 74 72 75 |the else| constru|
|00003390| 63 74 69 6f 6e 73 20 7b | 5c 74 74 20 65 6c 73 65 |ctions {|\tt else|
|000033a0| 7d 20 6f 66 20 77 68 69 | 63 68 0a 20 73 6f 6d 65 |} of whi|ch. some|
|000033b0| 20 65 78 61 6d 70 6c 65 | 73 20 66 6f 6c 6c 6f 77 | example|s follow|
|000033c0| 3a 0a 0a 5c 62 71 20 69 | 66 20 28 7b 5c 69 74 20 |:..\bq i|f ({\it |
|000033d0| 63 6f 6e 64 69 74 69 6f | 6e 73 7d 29 20 5c 5c 0a |conditio|ns}) \\.|
|000033e0| 20 20 20 20 7b 5c 69 74 | 20 63 6d 6f 64 65 2d 6c | {\it| cmode-l|
|000033f0| 69 6e 65 2d 73 74 61 74 | 65 6d 65 6e 74 7d 5c 5c |ine-stat|ement}\\|
|00003400| 0a 65 6c 73 65 5c 5c 0a | 20 20 20 20 7b 5c 69 74 |.else\\.| {\it|
|00003410| 20 63 6d 6f 64 65 2d 6c | 69 6e 65 2d 73 74 61 74 | cmode-l|ine-stat|
|00003420| 65 6d 65 6e 74 7d 5c 65 | 71 0a 20 6f 72 0a 5c 62 |ement}\e|q. or.\b|
|00003430| 71 20 69 66 20 28 7b 5c | 69 74 20 63 6f 6e 64 69 |q if ({\|it condi|
|00003440| 74 69 6f 6e 73 7d 29 20 | 5c 7b 5c 5c 0a 20 20 20 |tions}) |\{\\. |
|00003450| 20 7b 5c 69 74 20 63 6d | 6f 64 65 2d 73 74 61 74 | {\it cm|ode-stat|
|00003460| 65 6d 65 6e 74 73 7d 5c | 5c 0a 5c 7d 20 65 6c 73 |ements}\|\.\} els|
|00003470| 65 20 5c 7b 5c 5c 0a 20 | 20 20 20 7b 5c 69 74 20 |e \{\\. | {\it |
|00003480| 63 6d 6f 64 65 2d 73 74 | 61 74 65 6d 65 6e 74 73 |cmode-st|atements|
|00003490| 7d 5c 5c 0a 5c 7d 5c 65 | 71 0a 0a 20 48 65 72 65 |}\\.\}\e|q.. Here|
|000034a0| 20 7b 5c 69 74 20 63 6d | 6f 64 65 2d 6c 69 6e 65 | {\it cm|ode-line|
|000034b0| 2d 73 74 61 74 65 6d 65 | 6e 74 7d 20 6d 65 61 6e |-stateme|nt} mean|
|000034c0| 73 20 61 6e 79 20 73 65 | 6d 69 63 6f 6c 6f 6e 20 |s any se|micolon |
|000034d0| 73 65 70 61 72 61 74 65 | 64 20 6c 69 73 74 0a 20 |separate|d list. |
|000034e0| 6f 66 20 43 2d 63 61 6c | 63 75 6c 61 74 6f 72 20 |of C-cal|culator |
|000034f0| 6d 6f 64 65 20 73 74 61 | 74 65 6d 65 6e 74 73 20 |mode sta|tements |
|00003500| 74 79 70 65 64 20 6f 6e | 20 74 68 65 20 73 61 6d |typed on| the sam|
|00003510| 65 20 6c 69 6e 65 2e 20 | 53 69 6e 63 65 0a 20 73 |e line. |Since. s|
|00003520| 65 6d 69 63 6f 6c 6f 6e | 73 20 61 72 65 20 73 65 |emicolon|s are se|
|00003530| 70 61 72 61 74 6f 72 73 | 20 61 6e 64 20 6e 6f 74 |parators| and not|
|00003540| 20 74 65 72 6d 69 6e 61 | 74 6f 72 73 2c 20 65 6d | termina|tors, em|
|00003550| 70 74 79 20 73 74 61 74 | 65 6d 65 6e 74 73 20 61 |pty stat|ements a|
|00003560| 72 65 0a 20 64 65 66 69 | 6e 65 64 20 62 79 20 65 |re. defi|ned by e|
|00003570| 6d 70 74 79 20 62 72 61 | 63 65 73 20 7b 5c 74 74 |mpty bra|ces {\tt|
|00003580| 20 5c 7b 20 5c 7d 7d 2e | 0a 0a 20 54 68 65 20 7b | \{ \}}.|.. The {|
|00003590| 5c 74 74 20 72 65 74 75 | 72 6e 7d 20 6b 65 79 77 |\tt retu|rn} keyw|
|000035a0| 6f 72 64 20 6d 75 73 74 | 20 68 61 76 65 20 70 61 |ord must| have pa|
|000035b0| 72 65 6e 74 68 65 73 65 | 73 20 77 68 65 6e 20 72 |renthese|s when r|
|000035c0| 65 74 75 72 6e 69 6e 67 | 20 61 20 76 61 6c 75 65 |eturning| a value|
|000035d0| 0a 20 66 72 6f 6d 20 61 | 20 66 75 6e 63 74 69 6f |. from a| functio|
|000035e0| 6e 20 61 73 20 69 6e 20 | 7b 5c 74 74 20 72 65 74 |n as in |{\tt ret|
|000035f0| 75 72 6e 28 78 20 2a 20 | 73 69 6e 28 79 29 29 7d |urn(x * |sin(y))}|
|00003600| 2e 20 41 20 73 69 6e 67 | 6c 65 20 7b 5c 74 74 20 |. A sing|le {\tt |
|00003610| 72 65 74 75 72 6e 7d 0a | 20 77 69 6c 6c 20 6f 6e |return}.| will on|
|00003620| 6c 79 20 62 65 20 72 65 | 63 6f 67 6e 69 7a 65 64 |ly be re|cognized|
|00003630| 20 66 72 6f 6d 20 77 69 | 74 68 69 6e 20 61 20 70 | from wi|thin a p|
|00003640| 72 6f 63 65 64 75 72 65 | 2e 0a 0a 20 54 6f 20 61 |rocedure|... To a|
|00003650| 76 6f 69 64 20 70 6f 74 | 65 6e 74 69 61 6c 20 63 |void pot|ential c|
|00003660| 6f 6e 66 75 73 69 6f 6e | 20 77 69 74 68 20 76 61 |onfusion| with va|
|00003670| 72 69 61 62 6c 65 73 2c | 20 6b 65 79 77 6f 72 64 |riables,| keyword|
|00003680| 73 20 63 61 6e 6e 6f 74 | 20 62 65 0a 20 61 62 62 |s cannot| be. abb|
|00003690| 72 65 76 69 61 74 65 64 | 2e 0a 0a 20 41 73 20 6f |reviated|... As o|
|000036a0| 70 70 6f 73 65 64 20 74 | 6f 20 43 2c 20 74 68 65 |pposed t|o C, the|
|000036b0| 72 65 20 65 78 69 73 74 | 73 20 6e 6f 20 69 6e 74 |re exist|s no int|
|000036c0| 65 67 65 72 20 69 6e 20 | 74 68 65 20 43 2d 63 61 |eger in |the C-ca|
|000036d0| 6c 63 75 6c 61 74 6f 72 | 20 6d 6f 64 65 2e 20 41 |lculator| mode. A|
|000036e0| 6c 6c 0a 20 73 63 61 6c | 61 72 20 76 61 72 69 61 |ll. scal|ar varia|
|000036f0| 62 6c 65 73 20 61 6e 64 | 20 6e 75 6d 62 65 72 73 |bles and| numbers|
|00003700| 20 61 72 65 20 64 6f 75 | 62 6c 65 20 70 72 65 63 | are dou|ble prec|
|00003710| 69 73 69 6f 6e 2e 20 54 | 68 69 73 20 6d 65 61 6e |ision. T|his mean|
|00003720| 73 20 74 68 61 74 0a 20 | 6c 6f 67 69 63 61 6c 20 |s that. |logical |
|00003730| 74 72 75 65 20 69 73 20 | 31 2e 30 20 61 6e 64 20 |true is |1.0 and |
|00003740| 66 61 6c 73 65 20 69 73 | 20 30 2e 30 2e 20 41 73 |false is| 0.0. As|
|00003750| 20 69 6e 20 43 2c 20 6f | 6e 65 20 6d 75 73 74 20 | in C, o|ne must |
|00003760| 62 65 20 63 61 72 65 66 | 75 6c 0a 20 77 69 74 68 |be caref|ul. with|
|00003770| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 6f 70 65 72 | compari|son oper|
|00003780| 61 74 6f 72 73 2e 20 54 | 68 65 20 43 20 7b 5c 74 |ators. T|he C {\t|
|00003790| 74 20 73 77 69 74 63 68 | 7d 20 73 79 6e 74 61 78 |t switch|} syntax|
|000037a0| 20 69 73 20 6e 6f 74 20 | 73 75 70 70 6f 72 74 65 | is not |supporte|
|000037b0| 64 0a 20 28 77 6f 75 6c | 64 20 72 65 71 75 69 72 |d. (woul|d requir|
|000037c0| 65 20 69 6e 74 65 67 65 | 72 73 29 2e 0a 0a 20 41 |e intege|rs)... A|
|000037d0| 73 20 61 6e 20 65 78 74 | 65 6e 73 69 6f 6e 2c 20 |s an ext|ension, |
|000037e0| 73 74 72 69 6e 67 20 63 | 6f 6d 70 61 72 69 73 6f |string c|ompariso|
|000037f0| 6e 20 69 73 20 70 6f 73 | 73 69 62 6c 65 20 77 69 |n is pos|sible wi|
|00003800| 74 68 20 74 68 65 20 65 | 71 75 61 6c 69 74 79 0a |th the e|quality.|
|00003810| 20 6f 70 65 72 61 74 6f | 72 73 20 60 3d 3d 27 20 | operato|rs `==' |
|00003820| 61 6e 64 20 60 21 3d 27 | 2e 20 54 68 69 73 20 77 |and `!='|. This w|
|00003830| 69 6c 6c 20 72 65 74 75 | 72 6e 20 74 72 75 65 20 |ill retu|rn true |
|00003840| 6f 72 20 66 61 6c 73 65 | 20 69 66 20 74 68 65 20 |or false| if the |
|00003850| 73 74 72 69 6e 67 0a 20 | 76 61 72 69 61 62 6c 65 |string. |variable|
|00003860| 73 20 28 6f 72 20 63 6f | 6e 73 74 61 6e 74 73 29 |s (or co|nstants)|
|00003870| 20 61 72 65 20 69 64 65 | 6e 74 69 63 61 6c 20 6f | are ide|ntical o|
|00003880| 72 20 6e 6f 74 2e 20 41 | 73 73 69 67 6e 6d 65 6e |r not. A|ssignmen|
|00003890| 74 73 20 6f 66 20 73 74 | 72 69 6e 67 0a 20 76 61 |ts of st|ring. va|
|000038a0| 72 69 61 62 6c 65 73 20 | 61 63 74 75 61 6c 6c 79 |riables |actually|
|000038b0| 20 63 6f 70 69 65 73 20 | 61 6c 6c 20 63 68 61 72 | copies |all char|
|000038c0| 61 63 74 65 72 73 20 6f | 66 20 74 68 65 20 73 74 |acters o|f the st|
|000038d0| 72 69 6e 67 20 6f 6e 20 | 74 68 65 20 52 48 53 20 |ring on |the RHS |
|000038e0| 74 6f 0a 20 74 68 65 20 | 73 74 72 69 6e 67 20 76 |to. the |string v|
|000038f0| 61 72 69 61 62 6c 65 20 | 6f 6e 20 74 68 65 20 4c |ariable |on the L|
|00003900| 48 53 2e 20 53 74 72 69 | 6e 67 20 61 64 64 69 74 |HS. Stri|ng addit|
|00003910| 69 6f 6e 73 20 61 6e 64 | 20 73 75 62 74 72 61 63 |ions and| subtrac|
|00003920| 74 69 6f 6e 73 20 61 72 | 65 0a 20 61 6c 73 6f 20 |tions ar|e. also |
|00003930| 70 6f 73 73 69 62 6c 65 | 2e 0a 0a 20 46 75 6e 63 |possible|... Func|
|00003940| 74 69 6f 6e 20 61 6e 64 | 20 70 72 6f 63 65 64 75 |tion and| procedu|
|00003950| 72 65 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 61 |re defin|itions a|
|00003960| 72 65 20 64 65 66 69 6e | 65 64 20 77 69 74 68 20 |re defin|ed with |
|00003970| 70 72 6f 74 6f 74 79 70 | 65 73 2c 20 69 2e 65 2e |prototyp|es, i.e.|
|00003980| 2c 0a 20 61 20 6c 69 73 | 74 20 6f 66 20 76 61 72 |,. a lis|t of var|
|00003990| 69 61 62 6c 65 73 20 72 | 65 70 72 65 73 65 6e 74 |iables r|epresent|
|000039a0| 69 6e 67 20 74 68 65 20 | 70 72 6f 70 65 72 20 6b |ing the |proper k|
|000039b0| 69 6e 64 20 6f 66 20 76 | 61 72 69 61 62 6c 65 2e |ind of v|ariable.|
|000039c0| 20 41 74 0a 20 72 75 6e | 2d 74 69 6d 65 2c 20 74 | At. run|-time, t|
|000039d0| 68 65 20 61 72 67 75 6d | 65 6e 74 73 20 6f 66 20 |he argum|ents of |
|000039e0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 61 72 65 |the func|tion are|
|000039f0| 20 63 68 65 63 6b 65 64 | 20 66 6f 72 20 74 79 70 | checked| for typ|
|00003a00| 65 0a 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |e. compa|tibility|
|00003a10| 20 61 6e 64 20 66 6f 72 | 20 74 68 65 69 72 20 6e | and for| their n|
|00003a20| 75 6d 62 65 72 2e 0a 0a | 20 41 6c 6c 20 76 61 72 |umber...| All var|
|00003a30| 69 61 62 6c 65 73 20 61 | 72 65 20 67 6c 6f 62 61 |iables a|re globa|
|00003a40| 6c 20 65 78 63 65 70 74 | 20 61 75 74 6f 6d 61 74 |l except| automat|
|00003a50| 69 63 20 76 61 72 69 61 | 62 6c 65 73 20 64 65 66 |ic varia|bles def|
|00003a60| 69 6e 65 64 20 75 73 69 | 6e 67 20 74 68 65 0a 20 |ined usi|ng the. |
|00003a70| 7b 5c 74 74 20 61 75 74 | 6f 7d 20 6b 65 79 77 6f |{\tt aut|o} keywo|
|00003a80| 72 64 2e 20 0a 0a 5c 53 | 65 65 61 6c 73 6f 0a 5c |rd. ..\S|eealso.\|
|00003a90| 62 71 20 63 6d 6f 64 65 | 2c 20 6c 65 74 2c 20 6d |bq cmode|, let, m|
|00003aa0| 61 74 68 2c 20 73 63 61 | 6e 2c 20 73 74 72 69 6e |ath, sca|n, strin|
|00003ab0| 67 73 2c 20 61 75 74 6f | 20 5c 65 71 0a 0a 5c 73 |gs, auto| \eq..\s|
|00003ac0| 65 63 74 69 6f 6e 7b 63 | 64 7d 0a 0a 20 54 68 65 |ection{c|d}.. The|
|00003ad0| 20 7b 5c 74 74 20 63 64 | 7d 20 63 6f 6d 6d 61 6e | {\tt cd|} comman|
|00003ae0| 64 20 63 68 61 6e 67 65 | 73 20 74 68 65 20 77 6f |d change|s the wo|
|00003af0| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |rking di|rectory.|
|00003b00| 20 43 61 6c 6c 65 64 20 | 77 69 74 68 20 6e 6f 0a | Called |with no.|
|00003b10| 20 61 72 67 75 6d 65 6e | 74 2c 20 7b 5c 74 74 20 | argumen|t, {\tt |
|00003b20| 63 64 7d 20 77 69 6c 6c | 20 62 72 69 6e 67 20 79 |cd} will| bring y|
|00003b30| 6f 75 20 74 6f 20 79 6f | 75 72 20 5c 24 48 4f 4d |ou to yo|ur \$HOM|
|00003b40| 45 20 64 69 72 65 63 74 | 6f 72 79 2e 20 4e 6f 74 |E direct|ory. Not|
|00003b50| 65 20 74 68 61 74 0a 20 | 7b 5c 74 74 20 63 64 7d |e that. |{\tt cd}|
|00003b60| 20 63 68 61 6e 67 65 73 | 20 74 68 65 20 63 75 72 | changes| the cur|
|00003b70| 72 65 6e 74 20 77 6f 72 | 6b 69 6e 67 20 64 69 72 |rent wor|king dir|
|00003b80| 65 63 74 6f 72 79 20 6f | 66 20 5c 66 75 64 67 69 |ectory o|f \fudgi|
|00003b90| 74 5c 20 6f 6e 6c 79 2e | 0a 20 54 68 65 72 65 66 |t\ only.|. Theref|
|00003ba0| 6f 72 65 2c 20 79 6f 75 | 72 20 70 6c 6f 74 74 69 |ore, you|r plotti|
|00003bb0| 6e 67 20 70 72 6f 67 72 | 61 6d 20 77 69 6c 6c 20 |ng progr|am will |
|00003bc0| 73 74 69 6c 6c 20 62 65 | 20 69 6e 20 74 68 65 20 |still be| in the |
|00003bd0| 70 72 65 76 69 6f 75 73 | 0a 20 64 69 72 65 63 74 |previous|. direct|
|00003be0| 6f 72 79 2e 20 54 6f 20 | 67 65 74 20 61 72 6f 75 |ory. To |get arou|
|00003bf0| 6e 64 20 74 68 69 73 20 | 64 69 66 66 69 63 75 6c |nd this |difficul|
|00003c00| 74 79 2c 20 79 6f 75 20 | 6f 6e 6c 79 20 68 61 76 |ty, you |only hav|
|00003c10| 65 20 74 6f 20 64 65 66 | 69 6e 65 20 61 0a 20 6d |e to def|ine a. m|
|00003c20| 61 63 72 6f 20 61 73 20 | 66 6f 6c 6c 6f 77 73 2c |acro as |follows,|
|00003c30| 20 69 66 20 79 6f 75 72 | 20 70 6c 6f 74 74 69 6e | if your| plottin|
|00003c40| 67 20 70 72 6f 67 72 61 | 6d 20 73 75 70 70 6f 72 |g progra|m suppor|
|00003c50| 74 73 20 7b 5c 74 74 20 | 63 64 7d 3a 0a 5c 6e 6f |ts {\tt |cd}:.\no|
|00003c60| 70 61 67 65 62 72 65 61 | 6b 5c 62 65 67 69 6e 7b |pagebrea|k\begin{|
|00003c70| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 6d |verbatim|}. m|
|00003c80| 61 63 72 6f 20 43 64 20 | 31 0a 20 20 20 20 20 20 |acro Cd |1. |
|00003c90| 20 20 20 70 6d 6f 64 65 | 20 63 64 20 22 24 31 22 | pmode| cd "$1"|
|00003ca0| 0a 20 20 20 20 20 20 20 | 20 20 26 63 64 20 24 31 |. | &cd $1|
|00003cb0| 0a 20 20 20 20 20 73 74 | 6f 70 0a 20 20 20 20 20 |. st|op. |
|00003cc0| 61 6c 69 61 73 20 63 64 | 20 43 64 0a 5c 65 6e 64 |alias cd| Cd.\end|
|00003cd0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 0a 5c 53 79 6e |{verbati|m}..\Syn|
|00003ce0| 74 61 78 0a 5c 62 71 20 | 63 64 20 7b 5c 69 74 20 |tax.\bq |cd {\it |
|00003cf0| 66 69 6c 65 6e 61 6d 65 | 5c 6f 70 74 69 6f 7d 5c |filename|\optio}\|
|00003d00| 65 71 0a 0a 5c 45 78 61 | 6d 70 6c 65 73 0a 5c 6e |eq..\Exa|mples.\n|
|00003d10| 6f 70 61 67 65 62 72 65 | 61 6b 5c 62 65 67 69 6e |opagebre|ak\begin|
|00003d20| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 20 20 |{verbati|m}. |
|00003d30| 63 64 0a 20 20 20 20 20 | 63 64 20 2f 6e 61 7a 67 |cd. |cd /nazg|
|00003d40| 75 6c 2f 75 73 65 72 73 | 2f 66 75 6c 61 6e 6f 0a |ul/users|/fulano.|
|00003d50| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 0a |\end{ver|batim}..|
|00003d60| 5c 53 65 65 61 6c 73 6f | 0a 5c 62 71 20 5c 26 2c |\Seealso|.\bq \&,|
|00003d70| 20 70 77 64 2c 20 61 6c | 69 61 73 5c 65 71 0a 0a | pwd, al|ias\eq..|
|00003d80| 5c 73 65 63 74 69 6f 6e | 7b 63 6d 6f 64 65 7d 0a |\section|{cmode}.|
|00003d90| 0a 20 54 68 65 20 7b 5c | 74 74 20 63 6d 6f 64 65 |. The {\|tt cmode|
|00003da0| 7d 20 63 6f 6d 6d 61 6e | 64 20 61 6c 6c 6f 77 73 |} comman|d allows|
|00003db0| 20 79 6f 75 20 74 6f 20 | 67 6f 20 69 6e 20 74 68 | you to |go in th|
|00003dc0| 65 20 43 2d 63 61 6c 63 | 75 6c 61 74 6f 72 20 6d |e C-calc|ulator m|
|00003dd0| 6f 64 65 2e 20 54 68 65 | 0a 20 6f 6e 6c 79 20 77 |ode. The|. only w|
|00003de0| 61 79 20 74 6f 20 63 6f | 6d 65 20 62 61 63 6b 20 |ay to co|me back |
|00003df0| 74 6f 20 74 68 65 20 6d | 61 69 6e 20 66 69 74 74 |to the m|ain fitt|
|00003e00| 69 6e 67 20 6d 6f 64 65 | 20 69 73 20 62 79 20 75 |ing mode| is by u|
|00003e10| 73 69 6e 67 20 74 68 65 | 20 7b 5c 74 74 0a 20 66 |sing the| {\tt. f|
|00003e20| 6d 6f 64 65 7d 20 63 6f | 6d 6d 61 6e 64 20 6f 72 |mode} co|mmand or|
|00003e30| 20 74 6f 20 74 79 70 65 | 20 5c 5e 7b 20 7d 44 20 | to type| \^{ }D |
|00003e40| 69 6e 20 69 6e 74 65 72 | 61 63 74 69 76 65 20 6d |in inter|active m|
|00003e50| 6f 64 65 2e 20 43 6f 6d | 6d 61 6e 64 73 20 63 61 |ode. Com|mands ca|
|00003e60| 6e 6e 6f 74 0a 20 62 65 | 20 61 62 62 72 65 76 69 |nnot. be| abbrevi|
|00003e70| 61 74 65 64 20 69 6e 20 | 7b 5c 74 74 20 63 6d 6f |ated in |{\tt cmo|
|00003e80| 64 65 7d 2e 20 50 61 72 | 61 6c 6c 65 6c 20 74 6f |de}. Par|allel to|
|00003e90| 20 74 68 65 20 7b 5c 74 | 74 20 63 6d 6f 64 65 7d | the {\t|t cmode}|
|00003ea0| 20 63 6f 6d 6d 61 6e 64 | 2c 0a 20 74 68 65 20 7b | command|,. the {|
|00003eb0| 5c 74 74 20 6c 65 74 7d | 20 63 6f 6d 6d 61 6e 64 |\tt let}| command|
|00003ec0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00003ed0| 70 61 73 73 20 6f 6e 65 | 20 73 69 6e 67 6c 65 20 |pass one| single |
|00003ee0| 63 6f 6d 6d 61 6e 64 2c | 20 6f 72 0a 20 63 6f 6d |command,| or. com|
|00003ef0| 6d 61 6e 64 20 6c 69 6e | 65 20 74 6f 20 6d 61 74 |mand lin|e to mat|
|00003f00| 68 65 6d 61 74 69 63 61 | 6c 20 70 61 72 73 65 72 |hematica|l parser|
|00003f10| 2e 20 54 6f 20 62 65 20 | 63 6f 6e 73 69 73 74 65 |. To be |consiste|
|00003f20| 6e 74 20 77 69 74 68 20 | 7b 5c 74 74 20 70 6d 6f |nt with |{\tt pmo|
|00003f30| 64 65 7d 0a 20 63 6f 6d | 6d 61 6e 64 2c 20 7b 5c |de}. com|mand, {\|
|00003f40| 74 74 20 63 6d 6f 64 65 | 7d 20 61 6c 73 6f 20 61 |tt cmode|} also a|
|00003f50| 63 63 65 70 74 73 20 61 | 72 67 75 6d 65 6e 74 73 |ccepts a|rguments|
|00003f60| 20 69 6e 20 77 68 69 63 | 68 20 63 61 73 65 20 69 | in whic|h case i|
|00003f70| 74 20 69 73 0a 20 65 71 | 75 69 76 61 6c 65 6e 74 |t is. eq|uivalent|
|00003f80| 20 74 6f 20 74 68 65 20 | 7b 5c 74 74 20 6c 65 74 | to the |{\tt let|
|00003f90| 7d 20 63 6f 6d 6d 61 6e | 64 2e 20 49 74 20 69 73 |} comman|d. It is|
|00003fa0| 20 6e 6f 74 20 61 6e 20 | 65 72 72 6f 72 20 74 6f | not an |error to|
|00003fb0| 20 63 61 6c 6c 20 7b 5c | 74 74 0a 20 63 6d 6f 64 | call {\|tt. cmod|
|00003fc0| 65 7d 20 66 72 6f 6d 20 | 74 68 65 20 43 2d 63 61 |e} from |the C-ca|
|00003fd0| 6c 63 75 6c 61 74 6f 72 | 20 6d 6f 64 65 2e 20 41 |lculator| mode. A|
|00003fe0| 20 77 61 72 6e 69 6e 67 | 20 6d 65 73 73 61 67 65 | warning| message|
|00003ff0| 20 77 69 6c 6c 20 62 65 | 20 67 69 76 65 6e 0a 20 | will be| given. |
|00004000| 74 68 6f 75 67 68 2e 0a | 0a 5c 53 79 6e 74 61 78 |though..|.\Syntax|
|00004010| 0a 5c 62 71 20 63 6d 6f | 64 65 20 7b 5c 69 74 20 |.\bq cmo|de {\it |
|00004020| 63 6f 6d 6d 61 6e 64 2d | 6c 69 73 74 5c 6f 70 74 |command-|list\opt|
|00004030| 69 6f 7d 5c 65 71 0a 0a | 20 54 68 65 20 43 2d 63 |io}\eq..| The C-c|
|00004040| 61 6c 63 75 6c 61 74 6f | 72 20 6d 6f 64 65 20 73 |alculato|r mode s|
|00004050| 75 70 70 6f 72 74 73 20 | 6d 6f 73 74 20 6f 66 20 |upports |most of |
|00004060| 43 20 73 79 6e 74 61 78 | 20 28 73 65 65 20 69 74 |C syntax| (see it|
|00004070| 65 6d 20 43 29 2c 20 61 | 6e 64 20 6d 6f 73 74 0a |em C), a|nd most.|
|00004080| 20 6f 66 20 74 68 65 20 | 43 20 6d 61 74 68 20 6c | of the |C math l|
|00004090| 69 62 72 61 72 79 2e 20 | 54 68 75 73 2c 20 74 68 |ibrary. |Thus, th|
|000040a0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 75 6e 63 |e follow|ing func|
|000040b0| 74 69 6f 6e 73 20 61 72 | 65 20 73 75 70 70 6f 72 |tions ar|e suppor|
|000040c0| 74 65 64 3a 0a 5c 6e 6f | 70 61 67 65 62 72 65 61 |ted:.\no|pagebrea|
|000040d0| 6b 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |k\begin{|verbatim|
|000040e0| 7d 0a 20 20 20 20 74 72 | 69 67 6f 3a 20 20 20 20 |}. tr|igo: |
|000040f0| 68 79 70 65 72 62 6f 6c | 69 63 3a 20 20 65 78 70 |hyperbol|ic: exp|
|00004100| 6f 3a 20 20 20 20 73 70 | 65 63 69 61 6c 3a 20 20 |o: sp|ecial: |
|00004110| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 3a 20 20 72 61 | convers|ion: ra|
|00004120| 6e 64 6f 6d 3a 0a 0a 20 | 20 20 20 63 6f 73 28 29 |ndom:.. | cos()|
|00004130| 20 20 20 20 20 63 6f 73 | 68 28 29 20 20 20 20 20 | cos|h() |
|00004140| 20 20 6c 6e 28 29 20 20 | 20 20 20 20 62 65 73 79 | ln() | besy|
|00004150| 30 28 29 20 20 20 20 74 | 72 75 6e 63 28 29 20 20 |0() t|runc() |
|00004160| 20 20 20 73 72 61 6e 64 | 28 29 0a 20 20 20 20 63 | srand|(). c|
|00004170| 6f 74 28 29 20 20 20 20 | 20 63 6f 74 68 28 29 20 |ot() | coth() |
|00004180| 20 20 20 20 20 20 6c 6f | 67 28 29 20 20 20 20 20 | lo|g() |
|00004190| 62 65 73 79 31 28 29 20 | 20 20 20 66 6c 6f 6f 72 |besy1() | floor|
|000041a0| 28 29 20 20 20 20 20 72 | 61 6e 64 28 29 0a 20 20 |() r|and(). |
|000041b0| 20 20 63 73 63 28 29 20 | 20 20 20 20 63 73 63 68 | csc() | csch|
|000041c0| 28 29 20 20 20 20 20 20 | 20 65 78 70 28 29 20 20 |() | exp() |
|000041d0| 20 20 20 62 65 73 6a 30 | 28 29 20 20 20 20 63 65 | besj0|() ce|
|000041e0| 69 6c 28 29 0a 20 20 20 | 20 73 65 63 28 29 20 20 |il(). | sec() |
|000041f0| 20 20 20 73 65 63 68 28 | 29 20 20 20 20 20 20 20 | sech(|) |
|00004200| 73 71 72 74 28 29 20 20 | 20 20 62 65 73 6a 31 28 |sqrt() | besj1(|
|00004210| 29 20 20 20 20 72 69 6e | 74 28 29 0a 20 20 20 20 |) rin|t(). |
|00004220| 73 69 6e 28 29 20 20 20 | 20 20 73 69 6e 68 28 29 |sin() | sinh()|
|00004230| 20 20 20 20 20 20 20 63 | 62 72 74 28 29 20 20 20 | c|brt() |
|00004240| 20 62 65 73 6a 6e 28 29 | 20 20 20 20 61 62 73 28 | besjn()| abs(|
|00004250| 29 0a 20 20 20 20 74 61 | 6e 28 29 20 20 20 20 20 |). ta|n() |
|00004260| 74 61 6e 68 28 29 20 20 | 20 20 20 20 20 20 20 20 |tanh() | |
|00004270| 20 20 20 20 20 20 20 62 | 65 73 79 6e 28 29 20 20 | b|esyn() |
|00004280| 20 20 69 6e 74 28 29 0a | 20 20 20 20 61 63 6f 73 | int().| acos|
|00004290| 28 29 20 20 20 61 63 6f | 73 68 28 29 20 20 20 20 |() aco|sh() |
|000042a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 72 66 | | erf|
|000042b0| 28 29 20 20 20 20 20 20 | 73 63 61 6e 28 29 0a 20 |() |scan(). |
|000042c0| 20 20 20 61 73 69 6e 28 | 29 20 20 20 61 73 69 6e | asin(|) asin|
|000042d0| 68 28 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |h() | |
|000042e0| 20 20 20 20 65 72 66 63 | 28 29 20 20 20 20 20 6d | erfc|() m|
|000042f0| 69 6e 28 29 0a 20 20 20 | 20 61 74 61 6e 28 29 20 |in(). | atan() |
|00004300| 20 20 61 74 61 6e 68 28 | 29 20 20 20 20 20 20 20 | atanh(|) |
|00004310| 20 20 20 20 20 20 20 20 | 20 20 6c 67 61 6d 6d 61 | | lgamma|
|00004320| 28 29 20 20 20 6d 61 78 | 28 29 0a 20 20 20 20 61 |() max|(). a|
|00004330| 74 61 6e 32 28 29 20 20 | 20 20 20 20 20 20 20 20 |tan2() | |
|00004340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004350| 69 6e 74 65 72 70 28 29 | 20 20 20 73 75 6d 28 29 |interp()| sum()|
|00004360| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004390| 20 76 72 65 61 64 28 29 | 0a 5c 65 6e 64 7b 76 65 | vread()|.\end{ve|
|000043a0| 72 62 61 74 69 6d 7d 0a | 0a 20 41 6e 79 20 75 70 |rbatim}.|. Any up|
|000043b0| 70 65 72 20 63 61 73 65 | 20 76 61 72 69 61 62 6c |per case| variabl|
|000043c0| 65 20 28 70 6f 73 73 69 | 62 6c 79 20 69 6e 63 6c |e (possi|bly incl|
|000043d0| 75 64 69 6e 67 20 60 5c | 5f 27 29 20 70 6f 73 73 |uding `\|_') poss|
|000043e0| 69 62 6c 79 20 6d 69 78 | 65 64 20 77 69 74 68 0a |ibly mix|ed with.|
|000043f0| 20 64 69 67 69 74 73 20 | 77 69 6c 6c 20 62 65 20 | digits |will be |
|00004400| 72 65 63 6f 67 6e 69 7a | 65 64 20 61 73 20 61 20 |recogniz|ed as a |
|00004410| 76 65 63 74 6f 72 2c 20 | 65 2e 67 2e 2c 20 7b 5c |vector, |e.g., {\|
|00004420| 74 74 20 54 45 4d 50 5c | 5f 32 2c 20 54 45 53 54 |tt TEMP\|_2, TEST|
|00004430| 2c 20 44 7d 2c 0a 20 65 | 74 63 2e 20 41 6e 79 20 |, D},. e|tc. Any |
|00004440| 6c 6f 77 65 72 20 63 61 | 73 65 20 6e 61 6d 65 20 |lower ca|se name |
|00004450| 77 69 6c 6c 20 62 65 20 | 74 61 6b 65 6e 20 61 73 |will be |taken as|
|00004460| 20 61 20 73 63 61 6c 61 | 72 20 76 61 72 69 61 62 | a scala|r variab|
|00004470| 6c 65 2c 20 65 2e 67 2e | 2c 0a 20 7b 5c 74 74 20 |le, e.g.|,. {\tt |
|00004480| 78 2c 20 74 34 7d 2c 20 | 65 74 63 2e 20 54 68 65 |x, t4}, |etc. The|
|00004490| 72 65 20 61 72 65 20 74 | 77 6f 20 70 72 65 64 65 |re are t|wo prede|
|000044a0| 66 69 6e 65 64 20 63 6f | 6e 73 74 61 6e 74 73 2c |fined co|nstants,|
|000044b0| 20 7b 5c 74 74 20 70 69 | 7d 20 24 3d 5c 70 69 24 | {\tt pi|} $=\pi$|
|000044c0| 0a 20 61 6e 64 20 7b 5c | 74 74 20 65 7d 24 3d 65 |. and {\|tt e}$=e|
|000044d0| 24 2c 20 77 68 69 63 68 | 20 73 68 6f 75 6c 64 20 |$, which| should |
|000044e0| 6e 6f 74 20 62 65 20 75 | 6e 6c 6f 63 6b 65 64 20 |not be u|nlocked |
|000044f0| 61 6e 64 20 6d 6f 64 69 | 66 69 65 64 2e 20 41 73 |and modi|fied. As|
|00004500| 20 77 65 6c 6c 2c 0a 20 | 74 68 65 20 62 75 69 6c | well,. |the buil|
|00004510| 74 2d 69 6e 20 63 6f 6e | 73 74 61 6e 74 20 7b 5c |t-in con|stant {\|
|00004520| 74 74 20 64 61 74 61 7d | 20 63 6f 6e 74 61 69 6e |tt data}| contain|
|00004530| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 69 |s the cu|rrent si|
|00004540| 7a 65 20 6f 66 20 74 68 | 65 0a 20 76 65 63 74 6f |ze of th|e. vecto|
|00004550| 72 73 20 61 6e 64 20 63 | 61 6e 20 62 65 20 6d 6f |rs and c|an be mo|
|00004560| 64 69 66 69 65 64 20 74 | 68 72 6f 75 67 68 20 74 |dified t|hrough t|
|00004570| 68 65 20 7b 5c 74 74 20 | 73 65 74 20 64 61 74 61 |he {\tt |set data|
|00004580| 7d 20 63 6f 6d 6d 61 6e | 64 2c 20 62 79 20 74 68 |} comman|d, by th|
|00004590| 65 0a 20 7b 5c 74 74 20 | 72 65 61 64 7d 2f 7b 5c |e. {\tt |read}/{\|
|000045a0| 74 74 20 65 78 65 63 7d | 20 63 6f 6d 6d 61 6e 64 |tt exec}| command|
|000045b0| 73 2c 20 6f 72 20 62 79 | 20 7b 5c 74 74 20 75 6e |s, or by| {\tt un|
|000045c0| 6c 6f 63 6b 7d 69 6e 67 | 20 74 68 65 20 63 6f 6e |lock}ing| the con|
|000045d0| 73 74 61 6e 74 20 61 6e | 64 0a 20 6d 6f 64 69 66 |stant an|d. modif|
|000045e0| 79 69 6e 67 20 69 74 20 | 64 69 72 65 63 74 6c 79 |ying it |directly|
|000045f0| 2e 20 54 68 65 20 62 75 | 69 6c 74 2d 69 6e 20 63 |. The bu|ilt-in c|
|00004600| 6f 6e 73 74 61 6e 74 20 | 7b 5c 74 74 20 63 68 69 |onstant |{\tt chi|
|00004610| 32 7d 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 0a |2} conta|ins the.|
|00004620| 20 76 61 6c 75 65 20 6f | 66 20 24 5c 63 68 69 5e | value o|f $\chi^|
|00004630| 32 24 20 61 73 20 6f 62 | 74 61 69 6e 65 64 20 66 |2$ as ob|tained f|
|00004640| 72 6f 6d 20 74 68 65 20 | 6c 61 74 65 73 74 20 66 |rom the |latest f|
|00004650| 69 74 2e 20 41 6e 64 20 | 66 69 6e 61 6c 6c 79 2c |it. And |finally,|
|00004660| 20 74 68 65 0a 20 62 75 | 69 6c 74 2d 69 6e 20 73 | the. bu|ilt-in s|
|00004670| 63 61 6c 61 72 20 63 6f | 6e 73 74 61 6e 74 20 7b |calar co|nstant {|
|00004680| 5c 74 74 20 70 61 72 61 | 6d 7d 20 63 6f 6e 74 61 |\tt para|m} conta|
|00004690| 69 6e 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ins the |number o|
|000046a0| 66 20 70 61 72 61 6d 65 | 74 65 72 73 0a 20 61 73 |f parame|ters. as|
|000046b0| 20 64 65 66 69 6e 65 64 | 20 62 79 20 7b 5c 74 74 | defined| by {\tt|
|000046c0| 20 73 65 74 20 70 61 72 | 61 6d 65 74 65 72 73 7d | set par|ameters}|
|000046d0| 2e 0a 0a 20 41 20 6d 69 | 78 20 6f 66 20 75 70 70 |... A mi|x of upp|
|000046e0| 65 72 20 63 61 73 65 20 | 61 6e 64 20 6c 6f 77 65 |er case |and lowe|
|000046f0| 72 20 63 61 73 65 20 6c | 65 74 74 65 72 73 20 77 |r case l|etters w|
|00004700| 69 6c 6c 20 73 65 72 76 | 65 20 74 6f 20 69 6e 64 |ill serv|e to ind|
|00004710| 69 63 61 74 65 20 61 0a | 20 73 74 72 69 6e 67 20 |icate a.| string |
|00004720| 76 61 72 69 61 62 6c 65 | 2e 20 53 74 72 69 6e 67 |variable|. String|
|00004730| 73 20 76 61 6c 75 65 73 | 20 61 72 65 20 69 6e 64 |s values| are ind|
|00004740| 69 63 61 74 65 64 20 62 | 79 20 64 6f 75 62 6c 65 |icated b|y double|
|00004750| 20 71 75 6f 74 65 73 20 | 61 73 20 69 6e 0a 20 43 | quotes |as in. C|
|00004760| 2e 20 55 6e 6c 69 6b 65 | 20 43 2c 20 5c 66 75 64 |. Unlike| C, \fud|
|00004770| 67 69 74 5c 20 63 6f 6e | 73 69 64 65 72 73 20 73 |git\ con|siders s|
|00004780| 74 72 69 6e 67 73 20 61 | 73 20 73 65 6c 66 2d 63 |trings a|s self-c|
|00004790| 6f 6e 74 61 69 6e 65 64 | 20 6f 62 6a 65 63 74 73 |ontained| objects|
|000047a0| 20 74 68 61 74 0a 20 63 | 61 6e 20 62 65 20 61 64 | that. c|an be ad|
|000047b0| 64 65 64 2c 20 73 75 62 | 74 72 61 63 74 65 64 2c |ded, sub|tracted,|
|000047c0| 20 61 6e 64 20 63 68 65 | 63 6b 65 64 20 66 6f 72 | and che|cked for|
|000047d0| 20 28 69 6e 29 65 71 75 | 61 6c 69 74 79 2e 20 54 | (in)equ|ality. T|
|000047e0| 68 75 73 2c 20 73 74 72 | 69 6e 67 0a 20 6f 62 6a |hus, str|ing. obj|
|000047f0| 65 63 74 73 20 28 69 2e | 65 2e 20 73 74 72 69 6e |ects (i.|e. strin|
|00004800| 67 20 76 61 72 69 61 62 | 6c 65 73 2c 20 73 74 72 |g variab|les, str|
|00004810| 69 6e 67 20 63 6f 6e 73 | 74 61 6e 74 73 20 61 6e |ing cons|tants an|
|00004820| 64 20 73 74 72 69 6e 67 | 20 76 61 6c 75 65 73 29 |d string| values)|
|00004830| 0a 20 63 61 6e 3a 20 73 | 65 72 76 65 20 61 73 20 |. can: s|erve as |
|00004840| 61 72 67 75 6d 65 6e 74 | 20 74 6f 20 7b 5c 74 74 |argument| to {\tt|
|00004850| 20 73 63 61 6e 7d 20 66 | 75 6e 63 74 69 6f 6e 3b | scan} f|unction;|
|00004860| 20 62 65 20 70 61 72 74 | 20 6f 66 20 73 74 72 69 | be part| of stri|
|00004870| 6e 67 0a 20 61 73 73 69 | 67 6e 6d 65 6e 74 20 73 |ng. assi|gnment s|
|00004880| 74 61 74 65 6d 65 6e 74 | 73 20 6f 72 20 6f 66 20 |tatement|s or of |
|00004890| 61 20 74 72 75 74 68 20 | 73 74 61 74 65 6d 65 6e |a truth |statemen|
|000048a0| 74 20 69 6e 76 6f 6c 76 | 69 6e 67 20 28 69 6e 29 |t involv|ing (in)|
|000048b0| 65 71 75 61 6c 69 74 79 | 0a 20 6f 70 65 72 61 74 |equality|. operat|
|000048c0| 6f 72 3b 20 62 65 20 61 | 64 64 65 64 20 28 63 6f |or; be a|dded (co|
|000048d0| 6e 63 61 74 65 6e 61 74 | 65 64 20 75 73 69 6e 67 |ncatenat|ed using|
|000048e0| 20 74 68 65 20 60 2b 27 | 20 6f 70 65 72 61 74 6f | the `+'| operato|
|000048f0| 72 29 20 6f 6e 65 20 77 | 69 74 68 0a 20 61 6e 6f |r) one w|ith. ano|
|00004900| 74 68 65 72 3b 20 62 65 | 20 73 75 62 74 72 61 63 |ther; be| subtrac|
|00004910| 74 65 64 20 28 72 65 6d | 6f 76 65 20 73 74 72 69 |ted (rem|ove stri|
|00004920| 6e 67 20 74 65 72 6d 69 | 6e 61 74 69 6f 6e 20 75 |ng termi|nation u|
|00004930| 73 69 6e 67 20 74 68 65 | 20 60 2d 27 0a 20 6f 70 |sing the| `-'. op|
|00004940| 65 72 61 74 6f 72 29 20 | 6f 6e 65 20 77 69 74 68 |erator) |one with|
|00004950| 20 61 6e 6f 74 68 65 72 | 3b 20 61 6e 64 20 66 69 | another|; and fi|
|00004960| 6e 61 6c 6c 79 20 62 65 | 20 61 72 67 75 6d 65 6e |nally be| argumen|
|00004970| 74 20 6f 66 20 73 74 72 | 69 6e 67 0a 20 66 75 6e |t of str|ing. fun|
|00004980| 63 74 69 6f 6e 73 2e 0a | 20 0a 20 41 20 70 72 65 |ctions..| . A pre|
|00004990| 64 65 66 69 6e 65 64 20 | 73 74 72 69 6e 67 20 63 |defined |string c|
|000049a0| 6f 6e 73 74 61 6e 74 20 | 63 61 6c 6c 65 64 20 7b |onstant |called {|
|000049b0| 5c 74 74 20 54 6d 70 7d | 20 63 6f 6e 74 61 69 6e |\tt Tmp}| contain|
|000049c0| 73 20 74 68 65 20 73 74 | 72 69 6e 67 0a 20 22 2f |s the st|ring. "/|
|000049d0| 74 6d 70 2f 66 75 64 67 | 69 74 50 49 44 22 20 77 |tmp/fudg|itPID" w|
|000049e0| 68 65 72 65 20 50 49 44 | 20 69 73 20 74 68 65 20 |here PID| is the |
|000049f0| 70 72 6f 63 65 73 73 20 | 69 64 20 6e 75 6d 62 65 |process |id numbe|
|00004a00| 72 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |r of the| current|
|00004a10| 0a 20 70 72 6f 63 65 73 | 73 2e 20 54 68 69 73 20 |. proces|s. This |
|00004a20| 66 69 6c 65 2c 20 61 6e | 64 20 61 6e 79 20 66 69 |file, an|d any fi|
|00004a30| 6c 65 20 62 65 6c 6f 6e | 67 69 6e 67 20 74 6f 20 |le belon|ging to |
|00004a40| 79 6f 75 2c 20 77 68 6f | 73 65 20 6e 61 6d 65 20 |you, who|se name |
|00004a50| 73 74 61 72 74 73 0a 20 | 77 69 74 68 20 74 68 65 |starts. |with the|
|00004a60| 20 73 61 6d 65 20 73 74 | 72 69 6e 67 2c 20 77 69 | same st|ring, wi|
|00004a70| 6c 6c 20 62 65 20 65 72 | 61 73 65 64 20 61 75 74 |ll be er|ased aut|
|00004a80| 6f 6d 61 74 69 63 61 6c | 6c 79 20 62 79 20 74 68 |omatical|ly by th|
|00004a90| 65 20 7b 5c 74 74 20 65 | 78 69 74 7d 0a 20 6f 72 |e {\tt e|xit}. or|
|00004aa0| 20 7b 5c 74 74 20 71 75 | 69 74 7d 20 63 6f 6d 6d | {\tt qu|it} comm|
|00004ab0| 61 6e 64 73 2e 20 54 68 | 69 73 20 73 74 72 69 6e |ands. Th|is strin|
|00004ac0| 67 20 69 73 20 74 79 70 | 69 63 61 6c 6c 79 20 75 |g is typ|ically u|
|00004ad0| 73 65 64 20 62 79 20 74 | 68 65 20 7b 5c 74 74 0a |sed by t|he {\tt.|
|00004ae0| 20 67 6e 75 70 6c 6f 74 | 7d 20 6d 61 63 72 6f 20 | gnuplot|} macro |
|00004af0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 70 61 73 73 |in order| to pass|
|00004b00| 20 64 61 74 61 20 74 6f | 20 74 68 65 20 5c 67 6e | data to| the \gn|
|00004b10| 75 70 6c 6f 74 5c 20 70 | 6c 6f 74 74 69 6e 67 20 |uplot\ p|lotting |
|00004b20| 70 72 6f 67 72 61 6d 0a | 20 77 68 69 63 68 20 63 |program.| which c|
|00004b30| 61 6e 6e 6f 74 20 72 65 | 61 64 20 64 61 74 61 20 |annot re|ad data |
|00004b40| 66 72 6f 6d 20 73 74 61 | 6e 64 61 72 64 20 69 6e |from sta|ndard in|
|00004b50| 70 75 74 2e 20 41 6e 6f | 74 68 65 72 20 70 72 65 |put. Ano|ther pre|
|00004b60| 64 65 66 69 6e 65 64 20 | 73 74 72 69 6e 67 0a 20 |defined |string. |
|00004b70| 63 6f 6e 73 74 61 6e 74 | 20 69 73 20 7b 5c 74 74 |constant| is {\tt|
|00004b80| 20 52 65 61 64 46 69 6c | 65 7d 20 77 68 69 63 68 | ReadFil|e} which|
|00004b90| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 6c 61 | contain|s the la|
|00004ba0| 73 74 20 64 61 74 61 20 | 66 69 6c 65 6e 61 6d 65 |st data |filename|
|00004bb0| 20 74 68 61 74 0a 20 68 | 61 73 20 62 65 65 6e 20 | that. h|as been |
|00004bc0| 6c 6f 61 64 65 64 2e 20 | 46 69 6e 61 6c 6c 79 2c |loaded. |Finally,|
|00004bd0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 63 6f 6e 73 | the str|ing cons|
|00004be0| 74 61 6e 74 20 7b 5c 74 | 74 20 43 77 64 7d 20 69 |tant {\t|t Cwd} i|
|00004bf0| 73 20 6d 61 64 65 0a 20 | 61 76 61 69 6c 61 62 6c |s made. |availabl|
|00004c00| 65 20 69 6e 20 6f 72 64 | 65 72 20 74 6f 20 67 65 |e in ord|er to ge|
|00004c10| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 77 6f |t the cu|rrent wo|
|00004c20| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |rking di|rectory.|
|00004c30| 0a 0a 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |.. The f|ollowing|
|00004c40| 20 74 61 62 6c 65 20 63 | 6f 6e 74 61 69 6e 73 20 | table c|ontains |
|00004c50| 61 6c 6c 20 74 68 65 20 | 62 75 69 6c 74 2d 69 6e |all the |built-in|
|00004c60| 20 63 6f 6e 73 74 61 6e | 74 73 2e 0a 5c 6e 6f 70 | constan|ts..\nop|
|00004c70| 61 67 65 62 72 65 61 6b | 5c 62 65 67 69 6e 7b 76 |agebreak|\begin{v|
|00004c80| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 63 68 69 |erbatim}|. chi|
|00004c90| 32 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2 | |
|00004ca0| 56 61 6c 75 65 20 6f 66 | 20 63 68 69 5e 32 20 66 |Value of| chi^2 f|
|00004cb0| 72 6f 6d 20 74 68 65 20 | 6c 61 73 74 20 66 69 74 |rom the |last fit|
|00004cc0| 3b 0a 20 20 20 20 64 61 | 74 61 20 20 20 20 20 20 |;. da|ta |
|00004cd0| 20 20 20 20 20 20 20 20 | 20 4c 65 6e 67 74 68 20 | | Length |
|00004ce0| 6f 66 20 61 6c 6c 20 76 | 65 63 74 6f 72 73 20 28 |of all v|ectors (|
|00004cf0| 3c 20 73 61 6d 70 6c 65 | 73 29 20 61 73 20 73 65 |< sample|s) as se|
|00004d00| 74 20 62 79 20 73 65 74 | 20 64 61 74 61 3b 0a 20 |t by set| data;. |
|00004d10| 20 20 20 65 20 20 20 20 | 20 20 20 20 20 20 20 20 | e | |
|00004d20| 20 20 20 20 20 20 4e 65 | 70 65 72 69 61 6e 20 6e | Ne|perian n|
|00004d30| 75 6d 62 65 72 3b 0a 20 | 20 20 20 70 61 72 61 6d |umber;. | param|
|00004d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4e 75 | | Nu|
|00004d50| 6d 62 65 72 20 6f 66 20 | 70 61 72 61 6d 65 74 65 |mber of |paramete|
|00004d60| 72 73 20 61 73 20 73 65 | 74 20 62 79 20 73 65 74 |rs as se|t by set|
|00004d70| 20 70 61 72 61 6d 65 74 | 65 72 73 3b 0a 20 20 20 | paramet|ers;. |
|00004d80| 20 70 69 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | pi | |
|00004d90| 20 20 20 20 47 75 65 73 | 73 20 74 68 69 73 20 6f | Gues|s this o|
|00004da0| 6e 65 3b 0a 0a 20 20 20 | 20 43 77 64 20 20 20 20 |ne;.. | Cwd |
|00004db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 43 75 72 72 | | Curr|
|00004dc0| 65 6e 74 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |ent work|ing dire|
|00004dd0| 63 74 6f 72 79 3b 0a 20 | 20 20 20 52 65 61 64 46 |ctory;. | ReadF|
|00004de0| 69 6c 65 20 20 20 20 20 | 20 20 20 20 20 20 54 68 |ile | Th|
|00004df0| 65 20 6c 61 73 74 20 66 | 69 6c 65 20 28 70 72 6f |e last f|ile (pro|
|00004e00| 67 72 61 6d 29 20 72 65 | 61 64 20 62 79 20 72 65 |gram) re|ad by re|
|00004e10| 61 64 20 28 65 78 65 63 | 29 3b 0a 20 20 20 20 54 |ad (exec|);. T|
|00004e20| 6d 70 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |mp | |
|00004e30| 20 20 41 20 74 65 6d 70 | 6f 72 61 72 79 20 66 69 | A temp|orary fi|
|00004e40| 6c 65 6e 61 6d 65 20 22 | 2f 74 6d 70 2f 66 75 64 |lename "|/tmp/fud|
|00004e50| 67 69 74 50 49 44 22 3b | 0a 5c 65 6e 64 7b 76 65 |gitPID";|.\end{ve|
|00004e60| 72 62 61 74 69 6d 7d 0a | 0a 20 43 6f 6e 73 74 61 |rbatim}.|. Consta|
|00004e70| 6e 74 73 20 28 65 69 74 | 68 65 72 20 73 74 72 69 |nts (eit|her stri|
|00004e80| 6e 67 73 20 61 6e 64 20 | 73 63 61 6c 61 72 73 29 |ngs and |scalars)|
|00004e90| 20 63 61 6e 20 61 6c 73 | 6f 20 62 65 20 63 72 65 | can als|o be cre|
|00004ea0| 61 74 65 64 20 62 79 20 | 7b 5c 74 74 0a 20 6c 6f |ated by |{\tt. lo|
|00004eb0| 63 6b 7d 69 6e 67 20 61 | 20 76 61 72 69 61 62 6c |ck}ing a| variabl|
|00004ec0| 65 2e 20 49 6e 20 74 68 | 65 20 73 61 6d 65 20 6d |e. In th|e same m|
|00004ed0| 61 6e 6e 65 72 2c 20 61 | 20 63 6f 6e 73 74 61 6e |anner, a| constan|
|00004ee0| 74 20 63 61 6e 20 62 65 | 20 6d 6f 64 69 66 69 65 |t can be| modifie|
|00004ef0| 64 0a 20 64 69 72 65 63 | 74 6c 79 20 69 66 20 69 |d. direc|tly if i|
|00004f00| 74 20 68 61 73 20 62 65 | 65 6e 20 7b 5c 74 74 20 |t has be|en {\tt |
|00004f10| 75 6e 6c 6f 63 6b 7d 65 | 64 2e 0a 0a 20 54 68 65 |unlock}e|d... The|
|00004f20| 20 61 6c 67 65 62 72 61 | 69 63 20 6f 70 65 72 61 | algebra|ic opera|
|00004f30| 74 69 6f 6e 73 20 61 70 | 70 6c 69 63 61 62 6c 65 |tions ap|plicable|
|00004f40| 20 74 6f 20 73 63 61 6c | 61 72 20 76 61 72 69 61 | to scal|ar varia|
|00004f50| 62 6c 65 73 20 63 61 6e | 20 62 65 20 61 70 70 6c |bles can| be appl|
|00004f60| 69 65 64 0a 20 74 6f 20 | 76 65 63 74 6f 72 73 2e |ied. to |vectors.|
|00004f70| 20 56 65 63 74 6f 72 20 | 61 6c 67 65 62 72 61 20 | Vector |algebra |
|00004f80| 63 61 6e 20 62 65 20 6d | 69 78 65 64 20 77 69 74 |can be m|ixed wit|
|00004f90| 68 20 73 63 61 6c 61 72 | 20 76 61 72 69 61 62 6c |h scalar| variabl|
|00004fa0| 65 20 61 6c 67 65 62 72 | 61 0a 20 69 6e 20 77 68 |e algebr|a. in wh|
|00004fb0| 69 63 68 20 63 61 73 65 | 20 74 68 65 20 75 73 65 |ich case| the use|
|00004fc0| 72 20 68 61 73 20 74 6f | 20 74 61 6b 65 20 74 68 |r has to| take th|
|00004fd0| 65 20 69 6d 70 6c 69 65 | 64 20 6c 6f 6f 70 20 69 |e implie|d loop i|
|00004fe0| 6e 74 6f 20 61 63 63 6f | 75 6e 74 2e 20 46 6f 72 |nto acco|unt. For|
|00004ff0| 0a 20 65 78 61 6d 70 6c | 65 2c 20 61 6c 74 68 6f |. exampl|e, altho|
|00005000| 75 67 68 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ugh the |followin|
|00005010| 67 20 6f 70 65 72 61 74 | 69 6f 6e 20 69 73 20 6e |g operat|ion is n|
|00005020| 6f 74 20 73 74 61 6e 64 | 61 72 64 20 43 0a 20 70 |ot stand|ard C. p|
|00005030| 72 6f 67 72 61 6d 6d 69 | 6e 67 3a 0a 5c 66 6f 6f |rogrammi|ng:.\foo|
|00005040| 74 6e 6f 74 65 0a 20 7b | 4e 4f 54 45 3a 20 49 6e |tnote. {|NOTE: In|
|00005050| 20 6f 72 64 65 72 20 74 | 6f 20 73 68 6f 77 20 74 | order t|o show t|
|00005060| 68 61 74 20 73 6f 6d 65 | 20 63 6f 6d 6d 61 6e 64 |hat some| command|
|00005070| 73 20 63 61 6e 20 62 65 | 20 74 79 70 65 64 20 66 |s can be| typed f|
|00005080| 72 6f 6d 20 62 6f 74 68 | 0a 20 43 2d 63 61 6c 63 |rom both|. C-calc|
|00005090| 75 6c 61 74 6f 72 20 6d | 6f 64 65 20 61 6e 64 20 |ulator m|ode and |
|000050a0| 74 68 65 20 66 69 74 74 | 69 6e 67 20 66 6d 6f 64 |the fitt|ing fmod|
|000050b0| 65 2c 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |e, the f|ollowing|
|000050c0| 20 65 78 61 6d 70 6c 65 | 73 20 73 68 6f 77 73 0a | example|s shows.|
|000050d0| 20 74 68 65 20 74 79 70 | 69 6e 67 20 6d 6f 64 65 | the typ|ing mode|
|000050e0| 20 66 72 6f 6d 20 74 68 | 65 20 66 69 72 73 74 20 | from th|e first |
|000050f0| 6c 69 6e 65 2e 20 48 6f | 77 65 76 65 72 2c 20 6f |line. Ho|wever, o|
|00005100| 6e 65 20 63 61 6e 20 61 | 6c 77 61 79 73 20 74 79 |ne can a|lways ty|
|00005110| 70 65 20 74 68 65 0a 20 | 73 61 6d 65 20 43 2d 63 |pe the. |same C-c|
|00005120| 61 6c 63 75 6c 61 74 6f | 72 20 6d 6f 64 65 20 63 |alculato|r mode c|
|00005130| 6f 6d 6d 61 6e 64 20 66 | 72 6f 6d 20 74 68 65 20 |ommand f|rom the |
|00005140| 66 69 74 74 69 6e 67 20 | 6d 6f 64 65 20 62 79 20 |fitting |mode by |
|00005150| 75 73 69 6e 67 20 74 68 | 65 20 7b 5c 74 74 0a 20 |using th|e {\tt. |
|00005160| 6c 65 74 7d 20 63 6f 6d | 6d 61 6e 64 20 28 6f 72 |let} com|mand (or|
|00005170| 20 7b 5c 74 74 20 63 6d | 6f 64 65 7d 20 63 6f 6d | {\tt cm|ode} com|
|00005180| 6d 61 6e 64 29 2e 7d 0a | 5c 6e 6f 70 61 67 65 62 |mand).}.|\nopageb|
|00005190| 72 65 61 6b 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |reak\beg|in{verba|
|000051a0| 74 69 6d 7d 0a 20 20 20 | 20 20 63 6d 6f 64 65 0a |tim}. | cmode.|
|000051b0| 20 20 20 20 20 20 20 20 | 20 78 20 3d 20 30 0a 20 | | x = 0. |
|000051c0| 20 20 20 20 20 20 20 20 | 58 20 3d 20 78 2b 2b 0a | |X = x++.|
|000051d0| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 20 |\end{ver|batim}. |
|000051e0| 77 69 6c 6c 20 64 65 66 | 69 6e 65 20 61 20 76 65 |will def|ine a ve|
|000051f0| 63 74 6f 72 20 24 58 24 | 20 6f 66 20 73 69 7a 65 |ctor $X$| of size|
|00005200| 20 7b 5c 74 74 20 64 61 | 74 61 7d 20 28 73 65 65 | {\tt da|ta} (see|
|00005210| 20 7b 5c 74 74 20 73 65 | 74 20 64 61 74 61 7d 29 | {\tt se|t data})|
|00005220| 0a 20 72 61 6e 67 69 6e | 67 20 66 72 6f 6d 20 24 |. rangin|g from $|
|00005230| 58 5b 31 5d 24 20 74 6f | 20 24 58 5b 64 61 74 61 |X[1]$ to| $X[data|
|00005240| 5d 24 20 61 6e 64 20 74 | 61 6b 69 6e 67 20 76 61 |]$ and t|aking va|
|00005250| 6c 75 65 73 20 66 72 6f | 6d 20 30 20 74 6f 0a 20 |lues fro|m 0 to. |
|00005260| 24 64 61 74 61 2d 31 24 | 2e 20 4d 75 6c 74 69 70 |$data-1$|. Multip|
|00005270| 6c 65 20 63 6f 6d 6d 61 | 6e 64 73 20 63 61 6e 20 |le comma|nds can |
|00005280| 62 65 20 67 69 76 65 6e | 20 77 69 74 68 20 74 68 |be given| with th|
|00005290| 65 20 73 65 70 61 72 61 | 74 6f 72 20 60 3b 27 2c |e separa|tor `;',|
|000052a0| 20 66 6f 72 0a 20 65 78 | 61 6d 70 6c 65 2c 20 61 | for. ex|ample, a|
|000052b0| 6e 6f 74 68 65 72 20 76 | 65 72 73 69 6f 6e 20 6f |nother v|ersion o|
|000052c0| 66 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 63 |f the pr|evious c|
|000052d0| 6f 6d 6d 61 6e 64 20 63 | 6f 75 6c 64 20 62 65 20 |ommand c|ould be |
|000052e0| 77 72 69 74 74 65 6e 0a | 5c 6e 6f 70 61 67 65 62 |written.|\nopageb|
|000052f0| 72 65 61 6b 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |reak\beg|in{verba|
|00005300| 74 69 6d 7d 0a 20 20 20 | 20 20 63 6d 6f 64 65 0a |tim}. | cmode.|
|00005310| 20 20 20 20 20 20 20 20 | 20 78 3d 30 3b 58 3d 2b | | x=0;X=+|
|00005320| 2b 78 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |+x.\end{|verbatim|
|00005330| 7d 0a 20 69 6e 20 77 68 | 69 63 68 20 63 61 73 65 |}. in wh|ich case|
|00005340| 20 61 20 76 65 63 74 6f | 72 20 24 58 24 20 74 61 | a vecto|r $X$ ta|
|00005350| 6b 69 6e 67 20 76 61 6c | 75 65 73 20 66 72 6f 6d |king val|ues from|
|00005360| 20 31 20 74 6f 20 24 64 | 61 74 61 24 20 77 69 6c | 1 to $d|ata$ wil|
|00005370| 6c 20 62 65 0a 20 63 72 | 65 61 74 65 64 2e 20 28 |l be. cr|eated. (|
|00005380| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 6c 61 |Note tha|t the la|
|00005390| 74 74 65 72 20 75 73 65 | 73 20 61 20 70 72 65 2d |tter use|s a pre-|
|000053a0| 69 6e 63 72 65 6d 65 6e | 74 20 77 68 65 72 65 61 |incremen|t wherea|
|000053b0| 73 20 74 68 65 0a 20 66 | 6f 72 6d 65 72 20 75 73 |s the. f|ormer us|
|000053c0| 65 73 20 61 20 70 6f 73 | 74 2d 69 6e 63 72 65 6d |es a pos|t-increm|
|000053d0| 65 6e 74 20 6f 70 65 72 | 61 74 6f 72 20 6f 6e 20 |ent oper|ator on |
|000053e0| 7b 5c 74 74 20 78 7d 3a | 20 72 65 73 75 6c 74 73 |{\tt x}:| results|
|000053f0| 20 61 72 65 20 74 68 75 | 73 0a 20 64 69 66 66 65 | are thu|s. diffe|
|00005400| 72 65 6e 74 29 2e 20 56 | 65 63 74 6f 72 20 65 6c |rent). V|ector el|
|00005410| 65 6d 65 6e 74 73 20 63 | 61 6e 20 62 65 20 72 65 |ements c|an be re|
|00005420| 66 65 72 65 6e 63 65 64 | 20 62 79 20 65 6c 65 6d |ferenced| by elem|
|00005430| 65 6e 74 73 20 75 73 69 | 6e 67 0a 20 73 74 61 6e |ents usi|ng. stan|
|00005440| 64 61 72 64 20 43 20 67 | 72 61 6d 6d 61 72 2e 20 |dard C g|rammar. |
|00005450| 54 68 65 72 65 66 6f 72 | 65 2c 20 74 68 65 20 73 |Therefor|e, the s|
|00005460| 61 6d 65 20 76 65 63 74 | 6f 72 20 63 6f 75 6c 64 |ame vect|or could|
|00005470| 20 62 65 20 63 72 65 61 | 74 65 64 20 62 79 0a 20 | be crea|ted by. |
|00005480| 75 73 69 6e 67 20 61 20 | 7b 5c 74 74 20 77 68 69 |using a |{\tt whi|
|00005490| 6c 65 7d 20 63 6f 6e 73 | 74 72 75 63 74 69 6f 6e |le} cons|truction|
|000054a0| 20 61 73 20 69 6e 3a 0a | 5c 6e 6f 70 61 67 65 62 | as in:.|\nopageb|
|000054b0| 72 65 61 6b 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |reak\beg|in{verba|
|000054c0| 74 69 6d 7d 0a 20 20 20 | 20 20 66 6d 6f 64 65 0a |tim}. | fmode.|
|000054d0| 20 20 20 20 20 73 65 74 | 20 64 61 74 61 20 31 30 | set| data 10|
|000054e0| 30 30 0a 20 20 20 20 20 | 6c 65 74 20 58 3d 30 3b |00. |let X=0;|
|000054f0| 69 3d 30 0a 20 20 20 20 | 20 63 6d 6f 64 65 0a 20 |i=0. | cmode. |
|00005500| 20 20 20 20 20 20 20 20 | 77 68 69 6c 65 20 28 69 | |while (i|
|00005510| 2b 2b 20 3c 3d 20 64 61 | 74 61 29 0a 20 20 20 20 |++ <= da|ta). |
|00005520| 20 20 20 20 20 20 20 20 | 58 5b 69 5d 20 3d 20 69 | |X[i] = i|
|00005530| 0a 20 20 20 20 20 66 6d | 6f 64 65 0a 5c 65 6e 64 |. fm|ode.\end|
|00005540| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 6f 72 2c 20 |{verbati|m}. or, |
|00005550| 75 73 69 6e 67 20 61 20 | 7b 5c 74 74 20 66 6f 72 |using a |{\tt for|
|00005560| 7d 20 6c 6f 6f 70 2c 20 | 0a 5c 6e 6f 70 61 67 65 |} loop, |.\nopage|
|00005570| 62 72 65 61 6b 5c 62 65 | 67 69 6e 7b 76 65 72 62 |break\be|gin{verb|
|00005580| 61 74 69 6d 7d 0a 20 20 | 20 20 20 63 6d 6f 64 65 |atim}. | cmode|
|00005590| 0a 20 20 20 20 20 20 20 | 20 66 6f 72 20 28 78 3d |. | for (x=|
|000055a0| 30 3b 78 3c 3d 64 61 74 | 61 3b 78 2b 2b 29 20 7b |0;x<=dat|a;x++) {|
|000055b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 58 5b 78 |. | X[x|
|000055c0| 5d 20 3d 20 78 0a 20 20 | 20 20 20 20 20 20 7d 0a |] = x. | }.|
|000055d0| 20 20 20 20 20 66 6d 6f | 64 65 0a 5c 65 6e 64 7b | fmo|de.\end{|
|000055e0| 76 65 72 62 61 74 69 6d | 7d 0a 0a 20 4e 6f 6e 69 |verbatim|}.. Noni|
|000055f0| 6e 74 65 67 65 72 20 76 | 61 72 69 61 62 6c 65 73 |nteger v|ariables|
|00005600| 20 77 69 6c 6c 20 62 65 | 20 74 72 75 6e 63 61 74 | will be| truncat|
|00005610| 65 64 20 74 6f 20 74 68 | 65 20 6e 65 61 72 65 73 |ed to th|e neares|
|00005620| 74 20 6c 6f 77 65 72 20 | 69 6e 74 65 67 65 72 20 |t lower |integer |
|00005630| 74 6f 0a 20 66 6f 72 6d | 20 61 20 76 65 63 74 6f |to. form| a vecto|
|00005640| 72 20 69 6e 64 65 78 2e | 0a 5c 6e 6f 70 61 67 65 |r index.|.\nopage|
|00005650| 62 72 65 61 6b 5c 62 65 | 67 69 6e 7b 76 65 72 62 |break\be|gin{verb|
|00005660| 61 74 69 6d 7d 0a 20 20 | 20 20 20 63 6d 6f 64 65 |atim}. | cmode|
|00005670| 0a 20 20 20 20 20 20 20 | 20 20 79 3d 20 32 2e 30 |. | y= 2.0|
|00005680| 31 0a 20 20 20 20 20 20 | 20 20 20 78 3d 32 2e 32 |1. | x=2.2|
|00005690| 33 3b 20 58 5b 32 5d 3d | 5a 5b 79 5d 2b 35 5e 78 |3; X[2]=|Z[y]+5^x|
|000056a0| 20 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d | .\end{v|erbatim}|
|000056b0| 0a 0a 20 41 73 73 69 67 | 6e 69 6e 67 20 61 20 76 |.. Assig|ning a v|
|000056c0| 65 63 74 6f 72 20 74 6f | 20 61 20 63 6f 6e 73 74 |ector to| a const|
|000056d0| 61 6e 74 20 77 69 6c 6c | 20 61 73 73 69 67 6e 20 |ant will| assign |
|000056e0| 61 6c 6c 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 73 |all the |elements|
|000056f0| 20 74 6f 20 74 68 61 74 | 0a 20 63 6f 6e 73 74 61 | to that|. consta|
|00005700| 6e 74 2e 0a 5c 6e 6f 70 | 61 67 65 62 72 65 61 6b |nt..\nop|agebreak|
|00005710| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00005720| 0a 20 20 20 20 20 66 6d | 6f 64 65 0a 20 20 20 20 |. fm|ode. |
|00005730| 20 6c 65 74 20 58 20 3d | 20 70 69 0a 20 20 20 20 | let X =| pi. |
|00005740| 20 6c 65 74 20 5a 32 20 | 3d 20 30 0a 5c 65 6e 64 | let Z2 |= 0.\end|
|00005750| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 0a 20 54 68 65 |{verbati|m}.. The|
|00005760| 20 43 2d 63 61 6c 63 75 | 6c 61 74 6f 72 20 63 68 | C-calcu|lator ch|
|00005770| 65 63 6b 73 20 66 6f 72 | 20 75 6e 64 65 66 69 6e |ecks for| undefin|
|00005780| 65 64 20 76 61 72 69 61 | 62 6c 65 73 20 6f 6e 20 |ed varia|bles on |
|00005790| 74 68 65 20 52 48 53 20 | 6f 66 20 61 6e 79 0a 20 |the RHS |of any. |
|000057a0| 61 73 73 69 67 6e 6d 65 | 6e 74 2e 20 46 72 6f 6d |assignme|nt. From|
|000057b0| 20 43 2d 63 61 6c 63 75 | 6c 61 74 6f 72 20 6d 6f | C-calcu|lator mo|
|000057c0| 64 65 2c 20 76 61 72 69 | 61 62 6c 65 73 20 76 61 |de, vari|ables va|
|000057d0| 6c 75 65 73 20 63 61 6e | 20 62 65 20 73 65 65 6e |lues can| be seen|
|000057e0| 20 62 79 0a 20 74 79 70 | 69 6e 67 20 74 68 65 20 | by. typ|ing the |
|000057f0| 76 61 72 69 61 62 6c 65 | 20 6e 61 6d 65 20 62 79 |variable| name by|
|00005800| 20 69 74 73 65 6c 66 20 | 6f 72 20 62 79 20 75 73 | itself |or by us|
|00005810| 69 6e 67 20 74 68 65 20 | 7b 5c 74 74 20 70 72 69 |ing the |{\tt pri|
|00005820| 6e 74 7d 0a 20 63 6f 6d | 6d 61 6e 64 2c 20 69 66 |nt}. com|mand, if|
|00005830| 20 74 68 65 20 6f 75 74 | 70 75 74 20 69 73 20 73 | the out|put is s|
|00005840| 65 6c 65 63 74 65 64 20 | 74 6f 20 62 65 20 7b 5c |elected |to be {\|
|00005850| 69 74 20 73 74 64 6f 75 | 74 7d 2e 20 46 72 6f 6d |it stdou|t}. From|
|00005860| 20 74 68 65 0a 20 66 69 | 74 74 69 6e 67 20 6d 6f | the. fi|tting mo|
|00005870| 64 65 2c 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |de, cont|ents of |
|00005880| 63 6f 6e 73 74 61 6e 74 | 73 20 61 6e 64 20 76 61 |constant|s and va|
|00005890| 72 69 61 62 6c 65 73 20 | 28 65 69 74 68 65 72 20 |riables |(either |
|000058a0| 73 74 72 69 6e 67 73 20 | 6f 72 0a 20 73 63 61 6c |strings |or. scal|
|000058b0| 61 72 73 29 20 69 73 20 | 64 69 73 70 6c 61 79 65 |ars) is |displaye|
|000058c0| 64 20 75 73 69 6e 67 20 | 7b 5c 74 74 20 73 68 6f |d using |{\tt sho|
|000058d0| 77 20 76 61 72 69 61 62 | 6c 65 73 7d 20 63 6f 6d |w variab|les} com|
|000058e0| 6d 61 6e 64 2c 20 6f 72 | 20 62 79 20 75 73 69 6e |mand, or| by usin|
|000058f0| 67 0a 20 74 68 65 20 60 | 5c 24 27 20 65 78 70 61 |g. the `|\$' expa|
|00005900| 6e 73 69 6f 6e 20 6f 70 | 65 72 61 74 6f 72 2e 20 |nsion op|erator. |
|00005910| 48 6f 77 65 76 65 72 2c | 20 76 65 63 74 6f 72 73 |However,| vectors|
|00005920| 20 63 61 6e 20 62 65 20 | 6f 6e 6c 79 20 62 65 20 | can be |only be |
|00005930| 73 65 65 6e 20 66 72 6f | 6d 0a 20 74 68 65 20 66 |seen fro|m. the f|
|00005940| 69 74 74 69 6e 67 20 6d | 6f 64 65 20 62 79 20 75 |itting m|ode by u|
|00005950| 73 69 6e 67 20 74 68 65 | 20 7b 5c 74 74 20 73 68 |sing the| {\tt sh|
|00005960| 6f 77 20 76 65 63 74 6f | 72 7d 20 63 6f 6d 6d 61 |ow vecto|r} comma|
|00005970| 6e 64 2e 0a 0a 20 45 61 | 63 68 20 75 6e 6b 6e 6f |nd... Ea|ch unkno|
|00005980| 77 6e 20 76 65 63 74 6f | 72 20 6e 61 6d 65 20 67 |wn vecto|r name g|
|00005990| 69 76 65 6e 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |iven on |the comm|
|000059a0| 61 6e 64 20 6c 69 6e 65 | 20 61 6c 6c 6f 63 61 74 |and line| allocat|
|000059b0| 65 73 20 61 20 76 65 63 | 74 6f 72 0a 20 6f 66 20 |es a vec|tor. of |
|000059c0| 7b 5c 74 74 20 73 61 6d | 70 6c 65 7d 20 73 69 7a |{\tt sam|ple} siz|
|000059d0| 65 2e 0a 0a 20 54 6f 20 | 62 65 20 61 20 63 61 6c |e... To |be a cal|
|000059e0| 63 75 6c 61 74 6f 72 20 | 61 73 20 73 75 63 68 2c |culator |as such,|
|000059f0| 20 74 68 65 20 43 2d 63 | 61 6c 63 75 6c 61 74 6f | the C-c|alculato|
|00005a00| 72 20 70 72 69 6e 74 73 | 20 74 68 65 20 76 61 6c |r prints| the val|
|00005a10| 75 65 20 6f 66 20 74 68 | 65 0a 20 65 78 70 72 65 |ue of th|e. expre|
|00005a20| 73 73 69 6f 6e 20 67 69 | 76 65 6e 20 6f 6e 20 74 |ssion gi|ven on t|
|00005a30| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 2e |he comma|nd line.|
|00005a40| 20 54 68 75 73 2c 20 74 | 68 65 20 73 74 61 74 65 | Thus, t|he state|
|00005a50| 6d 65 6e 74 0a 5c 6e 6f | 70 61 67 65 62 72 65 61 |ment.\no|pagebrea|
|00005a60| 6b 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |k\begin{|verbatim|
|00005a70| 7d 0a 20 20 20 20 20 63 | 6d 6f 64 65 0a 20 20 20 |}. c|mode. |
|00005a80| 20 20 20 20 20 20 78 20 | 2b 20 32 0a 5c 65 6e 64 | x |+ 2.\end|
|00005a90| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 77 69 6c 6c |{verbati|m}. will|
|00005aa0| 20 70 72 69 6e 74 20 74 | 68 65 20 76 61 6c 75 65 | print t|he value|
|00005ab0| 20 6f 66 20 24 78 20 2b | 20 32 2e 30 24 2e 20 54 | of $x +| 2.0$. T|
|00005ac0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 6d |he conte|nts of m|
|00005ad0| 61 6e 79 20 76 61 72 69 | 61 62 6c 65 73 20 63 61 |any vari|ables ca|
|00005ae0| 6e 0a 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 20 |n. be di|splayed |
|00005af0| 61 74 20 74 68 65 20 73 | 61 6d 65 20 74 69 6d 65 |at the s|ame time|
|00005b00| 20 62 79 20 67 69 76 69 | 6e 67 20 61 20 63 6f 6d | by givi|ng a com|
|00005b10| 61 20 73 65 70 61 72 61 | 74 65 64 20 6c 69 73 74 |a separa|ted list|
|00005b20| 20 73 75 63 68 20 61 73 | 0a 20 69 6e 0a 5c 6e 6f | such as|. in.\no|
|00005b30| 70 61 67 65 62 72 65 61 | 6b 5c 62 65 67 69 6e 7b |pagebrea|k\begin{|
|00005b40| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 63 |verbatim|}. c|
|00005b50| 6d 6f 64 65 0a 20 20 20 | 20 20 20 20 20 20 78 2c |mode. | x,|
|00005b60| 22 74 65 6d 70 65 72 61 | 74 75 72 65 22 2c 20 74 |"tempera|ture", t|
|00005b70| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00005b80| 20 77 68 65 72 65 20 74 | 68 65 20 73 74 72 69 6e | where t|he strin|
|00005b90| 67 20 7b 5c 69 74 20 74 | 65 6d 70 65 72 61 74 75 |g {\it t|emperatu|
|00005ba0| 72 65 7d 20 77 69 6c 6c | 20 62 65 20 70 72 69 6e |re} will| be prin|
|00005bb0| 74 65 64 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |ted betw|een the |
|00005bc0| 76 61 6c 75 65 73 0a 20 | 6f 66 20 76 61 72 69 61 |values. |of varia|
|00005bd0| 62 6c 65 73 20 24 78 24 | 20 61 6e 64 20 24 74 24 |bles $x$| and $t$|
|00005be0| 2e 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 65 20 |. Note t|hat the |
|00005bf0| 43 2d 63 61 6c 63 75 6c | 61 74 6f 72 20 6d 6f 64 |C-calcul|ator mod|
|00005c00| 65 20 72 65 63 6f 67 6e | 69 7a 65 73 0a 20 73 74 |e recogn|izes. st|
|00005c10| 72 69 6e 67 73 20 62 79 | 20 64 6f 75 62 6c 65 20 |rings by| double |
|00005c20| 71 75 6f 74 65 73 2e 20 | 53 70 65 63 69 61 6c 20 |quotes. |Special |
|00005c30| 63 68 61 72 61 63 74 65 | 72 73 20 73 75 63 68 20 |characte|rs such |
|00005c40| 61 73 20 27 5c 76 65 72 | 62 2b 5c 6e 2b 27 20 61 |as '\ver|b+\n+' a|
|00005c50| 72 65 0a 20 61 6c 73 6f | 20 6c 65 67 61 6c 20 69 |re. also| legal i|
|00005c60| 6e 20 61 20 73 74 72 69 | 6e 67 2e 0a 0a 20 57 65 |n a stri|ng... We|
|00005c70| 20 63 6f 6e 63 6c 75 64 | 65 20 62 79 20 67 69 76 | conclud|e by giv|
|00005c80| 69 6e 67 20 73 6f 6d 65 | 20 65 78 61 6d 70 6c 65 |ing some| example|
|00005c90| 73 20 69 6e 76 6f 6c 76 | 69 6e 67 20 73 74 72 69 |s involv|ing stri|
|00005ca0| 6e 67 20 76 61 72 69 61 | 62 6c 65 73 3a 0a 5c 6e |ng varia|bles:.\n|
|00005cb0| 6f 70 61 67 65 62 72 65 | 61 6b 5c 62 65 67 69 6e |opagebre|ak\begin|
|00005cc0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 20 20 |{verbati|m}. |
|00005cd0| 66 6d 6f 64 65 0a 20 20 | 20 20 20 6c 65 74 20 53 |fmode. | let S|
|00005ce0| 74 72 69 6e 67 20 3d 20 | 22 6e 65 77 2e 66 69 6c |tring = |"new.fil|
|00005cf0| 65 22 0a 20 20 20 20 20 | 6c 65 74 20 78 20 3d 20 |e". |let x = |
|00005d00| 28 53 74 72 69 6e 67 20 | 3d 3d 20 22 6e 65 77 2e |(String |== "new.|
|00005d10| 66 69 6c 65 22 29 0a 20 | 20 20 20 20 6c 65 74 20 |file"). | let |
|00005d20| 79 20 3d 20 28 22 66 69 | 6c 65 31 22 20 3d 3d 20 |y = ("fi|le1" == |
|00005d30| 22 66 69 6c 65 32 22 29 | 0a 20 20 20 20 20 6c 65 |"file2")|. le|
|00005d40| 74 20 42 69 6e 67 20 3d | 20 22 5c 61 5c 61 5c 61 |t Bing =| "\a\a\a|
|00005d50| 22 0a 20 20 20 20 20 6c | 65 74 20 48 65 72 65 20 |". l|et Here |
|00005d60| 3d 20 43 77 64 20 20 20 | 20 20 20 20 20 23 20 53 |= Cwd | # S|
|00005d70| 74 6f 72 65 20 74 68 65 | 20 76 61 6c 75 65 20 6f |tore the| value o|
|00005d80| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 77 6f |f the cu|rrent wo|
|00005d90| 72 6b 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 0a |rking di|rectory.|
|00005da0| 20 20 20 20 20 6c 65 74 | 20 49 6e 70 75 74 20 3d | let| Input =|
|00005db0| 20 52 65 61 64 28 29 20 | 20 20 20 20 20 20 20 20 | Read() | |
|00005dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 23 20 | | # |
|00005dd0| 52 65 61 64 20 66 72 6f | 6d 20 73 74 64 69 6e 0a |Read fro|m stdin.|
|00005de0| 20 20 20 20 20 6c 65 74 | 20 54 65 73 74 20 3d 20 | let| Test = |
|00005df0| 46 69 6c 65 4e 61 6d 65 | 28 52 65 61 64 46 69 6c |FileName|(ReadFil|
|00005e00| 65 29 20 2d 20 22 2e 64 | 61 74 61 22 0a 20 20 20 |e) - ".d|ata". |
|00005e10| 20 20 6c 65 74 20 44 69 | 72 20 3d 20 44 69 72 4e | let Di|r = DirN|
|00005e20| 61 6d 65 28 49 6e 70 75 | 74 46 69 6c 65 29 0a 20 |ame(Inpu|tFile). |
|00005e30| 20 20 20 20 6c 65 74 20 | 79 20 3d 20 73 63 61 6e | let |y = scan|
|00005e40| 28 52 65 61 64 28 29 2c | 20 22 25 6c 66 22 29 0a |(Read(),| "%lf").|
|00005e50| 20 20 20 20 20 6c 65 74 | 20 46 69 6c 65 20 3d 20 | let| File = |
|00005e60| 22 53 54 52 49 4e 47 5f | 32 33 2e 34 22 0a 20 20 |"STRING_|23.4". |
|00005e70| 20 20 20 6c 65 74 20 6e | 75 6d 62 65 72 20 3d 20 | let n|umber = |
|00005e80| 73 63 61 6e 28 22 25 2a | 5b 5f 41 2d 5a 5d 25 6c |scan("%*|[_A-Z]%l|
|00005e90| 66 22 2c 20 46 69 6c 65 | 29 0a 20 20 20 20 20 6c |f", File|). l|
|00005ea0| 65 74 20 4d 65 73 73 61 | 67 65 20 3d 20 22 41 20 |et Messa|ge = "A |
|00005eb0| 74 61 62 20 5c 74 20 61 | 6e 64 20 61 20 6e 65 77 |tab \t a|nd a new|
|00005ec0| 6c 69 6e 65 5c 6e 22 0a | 5c 65 6e 64 7b 76 65 72 |line\n".|\end{ver|
|00005ed0| 62 61 74 69 6d 7d 0a 20 | 77 68 65 72 65 20 74 68 |batim}. |where th|
|00005ee0| 65 20 74 72 75 74 68 20 | 73 74 61 74 65 6d 65 6e |e truth |statemen|
|00005ef0| 74 20 63 6f 75 6c 64 20 | 62 65 20 6c 65 67 61 6c |t could |be legal|
|00005f00| 6c 79 20 75 73 65 64 20 | 61 73 20 61 20 63 6f 6e |ly used |as a con|
|00005f10| 64 69 74 69 6f 6e 20 66 | 6f 72 20 61 6e 0a 20 7b |dition f|or an. {|
|00005f20| 5c 74 74 20 69 66 7d 2c | 20 61 20 7b 5c 74 74 20 |\tt if},| a {\tt |
|00005f30| 77 68 69 6c 65 7d 2c 20 | 6f 72 20 61 20 7b 5c 74 |while}, |or a {\t|
|00005f40| 74 20 66 6f 72 7d 2e 0a | 0a 5c 53 65 65 61 6c 73 |t for}..|.\Seeals|
|00005f50| 6f 0a 5c 62 71 20 6c 65 | 74 2c 20 43 2c 20 64 61 |o.\bq le|t, C, da|
|00005f60| 74 61 2c 20 66 75 6e 63 | 2c 20 70 72 6f 63 2c 20 |ta, func|, proc, |
|00005f70| 70 72 69 6e 74 2c 20 66 | 6d 6f 64 65 2c 20 6d 61 |print, f|mode, ma|
|00005f80| 74 68 2c 20 77 68 69 6c | 65 2c 20 66 6f 72 2c 20 |th, whil|e, for, |
|00005f90| 72 65 74 75 72 6e 2c 5c | 5c 0a 61 75 74 6f 2c 20 |return,\|\.auto, |
|00005fa0| 69 66 2c 20 62 72 65 61 | 6b 2c 20 73 61 6d 70 6c |if, brea|k, sampl|
|00005fb0| 65 73 2c 20 71 75 6f 74 | 65 73 2c 20 73 74 72 69 |es, quot|es, stri|
|00005fc0| 6e 67 73 5c 65 71 0a 0a | 5c 73 65 63 74 69 6f 6e |ngs\eq..|\section|
|00005fd0| 7b 63 6f 6d 6d 65 6e 74 | 73 7d 0a 0a 20 42 79 20 |{comment|s}.. By |
|00005fe0| 64 65 66 61 75 6c 74 2c | 20 61 6e 79 74 68 69 6e |default,| anythin|
|00005ff0| 67 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 20 60 7b |g follow|ing a `{|
|00006000| 5c 74 74 20 5c 23 7d 27 | 20 77 69 6c 6c 20 62 65 |\tt \#}'| will be|
|00006010| 20 74 72 65 61 74 65 64 | 20 61 73 20 61 0a 20 63 | treated| as a. c|
|00006020| 6f 6d 6d 65 6e 74 20 61 | 6e 64 20 69 67 6e 6f 72 |omment a|nd ignor|
|00006030| 65 64 2e 20 54 68 69 73 | 20 68 6f 6c 64 73 20 66 |ed. This| holds f|
|00006040| 6f 72 20 64 61 74 61 20 | 66 69 6c 65 73 20 61 73 |or data |files as|
|00006050| 20 77 65 6c 6c 20 61 73 | 20 66 6f 72 20 63 6f 6d | well as| for com|
|00006060| 6d 61 6e 64 0a 20 73 63 | 72 69 70 74 20 66 69 6c |mand. sc|ript fil|
|00006070| 65 73 20 6c 6f 61 64 65 | 64 20 77 69 74 68 20 74 |es loade|d with t|
|00006080| 68 65 20 7b 5c 74 74 20 | 6c 6f 61 64 7d 20 63 6f |he {\tt |load} co|
|00006090| 6d 6d 61 6e 64 2e 20 54 | 68 69 73 20 64 65 66 61 |mmand. T|his defa|
|000060a0| 75 6c 74 20 63 61 6e 20 | 62 65 0a 20 63 68 61 6e |ult can |be. chan|
|000060b0| 67 65 64 20 77 69 74 68 | 20 74 68 65 20 7b 5c 74 |ged with| the {\t|
|000060c0| 74 20 73 65 74 20 63 6f | 6d 6d 65 6e 74 7d 20 63 |t set co|mment} c|
|000060d0| 6f 6d 6d 61 6e 64 2e 20 | 53 6f 6d 65 74 69 6d 65 |ommand. |Sometime|
|000060e0| 73 20 61 20 63 6f 6d 6d | 65 6e 74 0a 20 63 68 61 |s a comm|ent. cha|
|000060f0| 72 61 63 74 65 72 20 6e | 65 65 64 73 20 74 6f 20 |racter n|eeds to |
|00006100| 62 65 20 74 61 6b 65 6e | 20 6c 69 74 65 72 61 6c |be taken| literal|
|00006110| 6c 79 20 69 6e 20 61 20 | 73 63 72 69 70 74 20 66 |ly in a |script f|
|00006120| 69 6c 65 2e 20 54 68 65 | 20 63 6f 6d 6d 65 6e 74 |ile. The| comment|
|00006130| 0a 20 63 68 61 72 61 63 | 74 65 72 20 77 69 6c 6c |. charac|ter will|
|00006140| 20 62 65 20 61 63 63 65 | 70 74 65 64 20 61 73 20 | be acce|pted as |
|00006150| 64 61 74 61 20 69 66 20 | 69 74 20 66 6f 6c 6c 6f |data if |it follo|
|00006160| 77 73 20 74 68 65 20 60 | 5c 76 65 72 62 2b 5c 2b |ws the `|\verb+\+|
|00006170| 27 20 65 73 63 61 70 65 | 0a 20 6f 70 65 72 61 74 |' escape|. operat|
|00006180| 6f 72 2c 20 69 2e 65 2e | 20 60 5c 76 65 72 62 2b |or, i.e.| `\verb+|
|00006190| 5c 2b 5c 23 27 2c 20 6f | 72 2c 20 69 6e 20 74 68 |\+\#', o|r, in th|
|000061a0| 65 20 66 69 74 74 69 6e | 67 20 6d 6f 64 65 20 6f |e fittin|g mode o|
|000061b0| 6e 6c 79 2c 20 77 68 65 | 6e 65 76 65 72 20 74 68 |nly, whe|never th|
|000061c0| 65 0a 20 63 6f 6d 6d 65 | 6e 74 20 63 68 61 72 61 |e. comme|nt chara|
|000061d0| 63 74 65 72 20 69 73 20 | 73 6f 6d 65 77 68 65 72 |cter is |somewher|
|000061e0| 65 20 69 6e 73 69 64 65 | 20 71 75 6f 74 65 73 20 |e inside| quotes |
|000061f0| 6f 72 20 70 61 72 65 6e | 74 68 65 73 65 73 2e 20 |or paren|theses. |
|00006200| 54 68 65 0a 20 63 6f 6d | 6d 65 6e 74 20 63 68 61 |The. com|ment cha|
|00006210| 72 61 63 74 65 72 20 69 | 73 20 61 6c 77 61 79 73 |racter i|s always|
|00006220| 20 61 63 63 65 70 74 65 | 64 20 6c 69 74 65 72 61 | accepte|d litera|
|00006230| 6c 6c 79 20 77 68 65 6e | 20 74 79 70 65 64 20 6f |lly when| typed o|
|00006240| 6e 20 74 68 65 0a 20 69 | 6e 74 65 72 61 63 74 69 |n the. i|nteracti|
|00006250| 76 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 2e |ve comma|nd line.|
|00006260| 0a 0a 5c 53 65 65 61 6c | 73 6f 0a 5c 62 71 20 73 |..\Seeal|so.\bq s|
|00006270| 65 74 20 63 6f 6d 6d 65 | 6e 74 2c 20 72 65 61 64 |et comme|nt, read|
|00006280| 2c 20 6c 6f 61 64 2c 20 | 73 68 6f 77 20 63 6f 6d |, load, |show com|
|00006290| 6d 65 6e 74 2c 20 65 78 | 65 63 20 5c 65 71 0a 0a |ment, ex|ec \eq..|
|000062a0| 5c 73 65 63 74 69 6f 6e | 7b 63 6f 6e 74 69 6e 75 |\section|{continu|
|000062b0| 65 7d 0a 0a 20 54 68 65 | 20 7b 5c 74 74 20 63 6f |e}.. The| {\tt co|
|000062c0| 6e 74 69 6e 75 65 7d 20 | 6b 65 79 77 6f 72 64 20 |ntinue} |keyword |
|000062d0| 68 61 73 20 74 68 65 20 | 73 61 6d 65 20 75 73 61 |has the |same usa|
|000062e0| 67 65 20 69 74 20 68 61 | 73 20 69 6e 20 43 20 66 |ge it ha|s in C f|
|000062f0| 6f 72 20 73 65 6e 64 69 | 6e 67 0a 20 74 68 65 20 |or sendi|ng. the |
|00006300| 63 6f 6e 74 72 6f 6c 20 | 74 6f 20 74 68 65 20 6e |control |to the n|
|00006310| 65 78 74 20 69 74 65 72 | 61 74 69 6f 6e 20 6f 66 |ext iter|ation of|
|00006320| 20 61 20 7b 5c 74 74 20 | 66 6f 72 7d 20 6f 72 20 | a {\tt |for} or |
|00006330| 7b 5c 74 74 20 77 68 69 | 6c 65 7d 20 6c 6f 6f 70 |{\tt whi|le} loop|
|00006340| 2e 0a 20 7b 5c 74 74 20 | 63 6f 6e 74 69 6e 75 65 |.. {\tt |continue|
|00006350| 7d 20 69 73 20 61 20 43 | 2d 63 61 6c 63 75 6c 61 |} is a C|-calcula|
|00006360| 74 6f 72 20 6d 6f 64 65 | 20 63 6f 6d 6d 61 6e 64 |tor mode| command|
|00006370| 2e 0a 0a 5c 53 79 6e 74 | 61 78 0a 5c 62 71 20 63 |...\Synt|ax.\bq c|
|00006380| 6f 6e 74 69 6e 75 65 20 | 5c 65 71 0a 0a 5c 53 65 |ontinue |\eq..\Se|
|00006390| 65 61 6c 73 6f 0a 5c 62 | 71 20 66 6f 72 2c 20 77 |ealso.\b|q for, w|
|000063a0| 68 69 6c 65 2c 20 63 6d | 6f 64 65 2c 20 43 20 5c |hile, cm|ode, C \|
|000063b0| 65 71 0a 0a 5c 73 65 63 | 74 69 6f 6e 7b 64 61 74 |eq..\sec|tion{dat|
|000063c0| 61 20 66 69 6c 65 73 7d | 0a 0a 20 46 69 6c 65 73 |a files}|.. Files|
|000063d0| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 64 61 74 61 | contain|ing data|
|000063e0| 20 61 72 65 20 6c 6f 61 | 64 65 64 20 62 79 20 73 | are loa|ded by s|
|000063f0| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 20 6e 61 |pecifyin|g the na|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.